Project

General

Profile

« Previous | Next » 

Revision 1260

Makefiles: Use .SECONDARY with no prerequisites instead of setting a .PRECIOUS for each intermediate, to simplify turning off automatic deletion of intermediate files

View differences:

Makefile
12 12

  
13 13
all: _always $(coreMaps) join_maps ch_root_maps ;
14 14

  
15
.SUFFIXES:
15
.SUFFIXES: # turn off built-in suffix rules
16
.SECONDARY: # don't automatically delete intermediate files
16 17

  
17 18
_always:
18 19
.PHONY: _always
......
32 33
	$(bin)/in_place $< $(bin)/sort_map
33 34
	touch $@
34 35
	$(call review_,$<)
35
.PRECIOUS: .%.last_cleanup
36 36
else
37 37
$(coreMaps): _always
38 38
	$(MAKE) $(@:%=.%.last_cleanup)

Also available in: Unified diff