Project

General

Profile

« Previous | Next » 

Revision 5253

Makefiles: .last_cleanup targets: Make each individual target .PRECIOUS (don't delete on error) because just making %.last_cleanup precious doesn't seem to prevent deletion

View differences:

Makefile
1 1
include ../lib/common.Makefile
2 2

  
3 3

  
4
##### General targets
5

  
6
.PRECIOUS: %.last_cleanup # don't delete on error
7

  
8 4
##### Vars/functions
9 5

  
10 6
# Paths
......
39 35
	$(bin)/in_place $< $(bin)/sort 2 0
40 36
	touch $@
41 37
	$(MAKE) VegCore-VegBIEN.unsourced_terms.csv
38
.PRECIOUS: .VegCore.csv.last_cleanup
42 39

  
43 40
.Veg+-VegCore.csv.last_cleanup .VegX-VegCore.csv.last_cleanup: \
44 41
.%.last_cleanup: % $(dict)
......
46 43
	$(bin)/in_place $< $(bin)/sort_map
47 44
	touch $@
48 45
# can't canon because this would remove ? prefixes
46
.PRECIOUS: .Veg+-VegCore.csv.last_cleanup .VegX-VegCore.csv.last_cleanup
49 47

  
50 48
.VegCore-VegBIEN.csv.last_cleanup: .%.last_cleanup: % $(dict) $(vocab)
51 49
	$(bin)/in_place $< $(bin)/translate 0 $(dict)
......
54 52
	touch $@
55 53
	$(bin)/review 1 <$< >for_review/$<
56 54
	$(MAKE) VegCore-VegBIEN.unsourced_terms.csv
55
.PRECIOUS: .VegCore-VegBIEN.csv.last_cleanup
57 56

  
58 57
else
59 58
$(inputCoreMaps): _always

Also available in: Unified diff