Project

General

Profile

« Previous | Next » 

Revision 390

Makefile: Fixed pattern for recursive invocation of subdirectory make

View differences:

Makefile
41 41
_always:
42 42
.PHONY: _always
43 43

  
44
clean: $(addsuffix clean,$(subdirs))
44
clean: _always $(addsuffix clean,$(subdirs))
45 45

  
46
*/%: _always
47
	$(subMake)
48
.PRECIOUS: */%
46
$(foreach subdir,$(wildcard */),$(eval $(subdir)%: _always; $$(subMake)))
49 47

  
50
%/: _always
48
*/: _always
51 49
	$(subMake)
52
.PRECIOUS: %/
53 50

  
54 51
#####
55 52

  
......
187 184

  
188 185
#####
189 186

  
190
inputs := $(wildcard inputs/*/)
187
inputs-%: $(addsuffix %,$(shell echo inputs/*/)) _always ;
191 188

  
192
inputs: _always $(addsuffix install,$(inputs))
189
inputs: _always inputs-install
193 190

  
194
rm_inputs: _always $(addsuffix uninstall,$(inputs))
191
rm_inputs: _always inputs-uninstall
195 192

  
196
import: _always $(addsuffix import,$(inputs))
193
import: _always inputs-import
197 194

  
198
verify: _always $(addsuffix verify,$(inputs))
195
verify: _always inputs-verify
199 196

  
200
test2: _always $(addsuffix test,$(inputs))
197
test2: _always inputs-test
201 198

  
202 199
#####
203 200

  

Also available in: Unified diff