SUBDIRS := $(subst Makefile,,$(wildcard */Makefile)) all: $(SUBDIRS) $(SUBDIRS): @$(MAKE) -C $(@D) .PHONY: all $(SUBDIRS)