# recursively build all example projects in the subdirectories projects := $(filter-out _%, $(dir $(wildcard */Makefile))) all: $(projects:%=%-build) buildcheck: $(projects:%=%-buildcheck) install: $(projects:%=%-install) installcheck: $(projects:%=%-installcheck) clean: $(projects:%=%-clean) projects: @echo $(projects) %-build: %/Makefile $(MAKE) -C $(