Project

General

Profile

« Previous | Next » 

Revision 623

inputs/Makefile: Don't use subdir makefiles because they are no longer needed

View differences:

Makefile
1 1
# Make
2
subMake = $(MAKE) $(@F) --directory=$(@D)
2
subMake = $(MAKE) $(@F) --directory=$(@D) --makefile=../input.Makefile
3
# input.Makefile path is relative to subdir
3 4

  
4 5
#####
5 6

  
......
10 11
_always:
11 12
.PHONY: _always
12 13

  
14
subdirs := $(wildcard */)
15

  
13 16
define subdirTargets
14 17
$(subdir): _always
15 18
	+$$(subMake)
......
17 20
$(subdir)%: _always
18 21
	+$$(subMake)
19 22
endef
20
$(foreach subdir,$(wildcard */),$(eval $(subdirTargets)))
23
$(foreach subdir,$(subdirs),$(eval $(subdirTargets)))
21 24

  
22 25
Makefile: ;
23 26

  
24
%: $(addsuffix %,$(dir $(shell echo */Makefile))) _always ;
27
%: $(addsuffix %,$(subdirs)) _always ;

Also available in: Unified diff