Revision 5253
Added by Aaron Marcuse-Kubitza about 12 years ago
inputs/input.Makefile | ||
---|---|---|
93 | 93 |
+$(selfMake) |
94 | 94 |
# re-run make so that cache of existing files is reset |
95 | 95 |
|
96 |
.PRECIOUS: %.last_cleanup # don't delete on error |
|
97 |
|
|
98 | 96 |
make_script = ./$< >$@ |
99 | 97 |
|
100 | 98 |
%/: % _always ; |
... | ... | |
269 | 267 |
touch $@ |
270 | 268 |
+$(selfMake) $(<:%/map.csv=%/unmapped_terms.csv) |
271 | 269 |
+$(selfMake) $(<:%/map.csv=%/new_terms.csv) |
270 |
.PRECIOUS: %/.map.csv.last_cleanup |
|
272 | 271 |
else |
273 | 272 |
%/map.csv: _always |
274 | 273 |
$(if $(wildcard $@),,$(if $(nonXml),$(mkSrcMap))) |
mappings/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
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