SUBDIRS := $(wildcard */.) prefix = /usr install: @for dir in $(SUBDIRS) ; do \ $(MAKE) -C "$$dir" install ; \ done uninstall: @for dir in $(SUBDIRS) ; do \ $(MAKE) -C "$$dir" uninstall ; \ done .PHONY: install uninstall