1 2 3 4 5 6 7 8
DIRS = $(wildcard [012]* Demo) all: $(DIRS) $(DIRS): -@cd $@ && make clean && make .PHONY: $(DIRS)