root/inputs/Makefile @ 464
1 | 410 | aaronmk | # Make
|
---|---|---|---|
2 | subMake = $(MAKE) $(@F) --directory=$(@D) |
||
3 | |||
4 | #####
|
||
5 | |||
6 | all: |
||
7 | |||
8 | .SUFFIXES: |
||
9 | |||
10 | _always: |
||
11 | .PHONY: _always |
||
12 | |||
13 | define subdirTargets |
||
14 | $(subdir): _always |
||
15 | +$$(subMake) |
||
16 | |||
17 | $(subdir)%: _always |
||
18 | +$$(subMake) |
||
19 | endef
|
||
20 | $(foreach subdir,$(wildcard */),$(eval $(subdirTargets))) |
||
21 | |||
22 | 416 | aaronmk | Makefile: ; |
23 | |||
24 | 410 | aaronmk | %: $(addsuffix %,$(dir $(shell echo */Makefile))) _always ; |