root/inputs/Makefile @ 603
1 |
# 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 |
Makefile: ; |
23 |
|
24 |
%: $(addsuffix %,$(dir $(shell echo */Makefile))) _always ; |