1 2 3 4 5 6 7 8 9 10 11
FUNCTIONS := $(patsubst %/,%,$(dir $(wildcard */Makefile))) all: $(addprefix all-,$(FUNCTIONS)) clean: $(addprefix clean-,$(FUNCTIONS)) all-%: $(MAKE) -C $* all clean-%: $(MAKE) -C $* clean