Revision 5041
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/forwarding.Makefile | ||
---|---|---|
1 | 1 |
##### Subdir forwarding |
2 | 2 |
|
3 | 3 |
subdirs := $(wildcard */) |
4 |
allSubdirs := $(subdirs) |
|
4 | 5 |
|
5 | 6 |
define subdirTargets |
6 | 7 |
$(subdir): _always |
... | ... | |
10 | 11 |
+$$(subMake) |
11 | 12 |
.PRECIOUS: $(subdir)% # let subdir's Makefile decide whether to delete on error |
12 | 13 |
endef |
13 |
$(foreach subdir,$(subdirs),$(eval $(subdirTargets)))
|
|
14 |
$(foreach subdir,$(allSubdirs),$(eval $(subdirTargets)))
|
|
14 | 15 |
|
15 | 16 |
Makefile: ; |
16 | 17 |
|
Also available in: Unified diff
forwarding.Makefile: Differentiate between subdirs which can be sent a command and subdirs which will receive a command broadcast to "all" subdirs