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
11 11

  
12 12
all: _always $(all) ;
13 13

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

  
16 17
_always:
17 18
.PHONY: _always
......
23 24

  
24 25
%:: %.make
25 26
	./$< >$@
26
.PRECIOUS: %
27 27

  
28 28
##### VegBIEN DB
29 29

  
30
.PRECIOUS: vegbien.sql
31

  
32 30
empty = $(SED) -n \
33 31
's/^CREATE TABLE ([0-9A-Za-z_]+) \($$/TRUNCATE \1 CASCADE;/p' <$< >$@
34 32

  

Also available in: Unified diff