Project

General

Profile

« Previous | Next » 

Revision 1288

Makefile: Fixed subdir remake target to work for nested subdirs as well

View differences:

Makefile
50 50
	$(MAKE)
51 51
# re-run make so that cache of existing files is reset
52 52

  
53
%/remake: _always
54
	$(MAKE) $(@D)/clean
55
	$(MAKE) $(@D)/
56
# re-run make so that cache of existing files is reset
57

  
53 58
define subdirTargets
54 59
$(subdir): _always
55 60
	+$$(subMake)
56 61

  
57 62
$(subdir)%: _always
58 63
	+$$(subMake)
59

  
60
$(subdir)remake: _always $(subdir)clean
61
	$(MAKE) $(subdir)
62
# re-run make so that cache of existing files is reset
63 64
endef
64 65
$(foreach subdir,$(wildcard */),$(eval $(subdirTargets)))
65 66

  

Also available in: Unified diff