TARGETS = $(shell find lib/ -name "*.make") INSTR := $(foreach number,$(TARGETS),make -C $(shell dirname $(number)) -f $(shell basename $(number)) $(MAKECMDGOALS) &&) true all: $(INSTR) elaborate: $(INSTR) run: $(INSTR) run_wave: $(INSTR) clean: $(INSTR) mrproper: $(INSTR)