Project

General

Profile

« Previous | Next » 

Revision 1274

Makefiles: Moved remake into main Makefile. Fixed remake to run `make all` in a new make so that cache of existing files is reset. Have main remake run clean and then all instead of forwarding remake to subdirs, so that everything is cleaned before everything is remade.

View differences:

Makefile
46 46
_always:
47 47
.PHONY: _always
48 48

  
49
remake: _always clean
50
	$(MAKE)
51
# re-run make so that cache of existing files is reset
52

  
49 53
define subdirTargets
50 54
$(subdir): _always
51 55
	+$$(subMake)
52 56

  
53 57
$(subdir)%: _always
54 58
	+$$(subMake)
59

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

  

Also available in: Unified diff