root/trunk/lib/forwarding.Makefile @ 14857
1 | 14817 | aaronmk | ##### Subdir forwarding |
---|---|---|---|
2 | |||
3 | subdirs := $(filter-out ../ ./ .svn/ .archive/,$(call wildcard/,.*/ */)) |
||
4 | allSubdirs := $(subdirs) .public/ |
||
5 | |||
6 | define subdirTargets |
||
7 | $(subdir): _always |
||
8 | +$$(subMake) |
||
9 | |||
10 | $(subdir)%: _always |
||
11 | +$$(subMake) |
||
12 | .PRECIOUS: $(subdir)% # let subdir's Makefile decide whether to delete on error |
||
13 | endef |
||
14 | $(foreach subdir,$(allSubdirs),$(eval $(subdirTargets))) |
||
15 | |||
16 | Makefile: ; |
||
17 | |||
18 | %: $(addsuffix %,$(subdirs)) _always ; |