SUBDIRS := $(wildcard */.) all clean run: $(SUBDIRS) $(SUBDIRS): $(MAKE) -C $@ $(MAKECMDGOALS) .PHONY: all clean $(SUBDIRS)