Project

General

Profile

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
%: $(addsuffix %,$(dir $(shell echo */Makefile))) _always ;