1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
MK = make -j WEKEN = $(wildcard week-*) submake = $(foreach WEEK,$(WEKEN), $(MK) -C $(WEEK) $(1);) all: $(call submake) clean: $(call submake, clean) compile_commands: $(call submake, compile_commands) zip: $(call submake, zip)