root/lib/forwarding.Makefile @ 5172
1 | 3697 | aaronmk | ##### Subdir forwarding |
---|---|---|---|
2 | |||
3 | 5054 | aaronmk | subdirs := .TNRS/ $(wildcard */) |
4 | 5042 | aaronmk | allSubdirs := $(subdirs) .public/ |
5 | 3697 | aaronmk | |
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 | 5041 | aaronmk | $(foreach subdir,$(allSubdirs),$(eval $(subdirTargets))) |
15 | 3697 | aaronmk | |
16 | Makefile: ; |
||
17 | |||
18 | %: $(addsuffix %,$(subdirs)) _always ; |