Project

General

Profile

« Previous | Next » 

Revision 5065

mappings/Makefile: .VegCore.csv.last_cleanup, .VegCore-VegBIEN.csv.last_cleanup: Apply Veg+-VegCore.csv so that terms can easily be renamed just by adding a mapping in Veg+-VegCore.csv, which will auto-translate all places that use the term. .VegCore-VegBIEN.csv.last_cleanup: Canonicalize to VegCore.csv so case changes in VegCore terms will automatically propagate to VegCore-VegBIEN.csv.

View differences:

Makefile
7 7
bin := ../bin
8 8
inputCoreMaps := VegCore.csv Veg+-VegCore.csv VegCore-VegBIEN.csv \
9 9
VegX-VegCore.csv
10
vocab := VegCore.csv
11
dict := Veg+-VegCore.csv
10 12

  
11 13
##### General targets
12 14

  
......
28 30

  
29 31
ifneq ($(filter .%.last_cleanup,$(MAKECMDGOALS)),)
30 32

  
31
.VegCore.csv.last_cleanup: .%.last_cleanup: %
33
.VegCore.csv.last_cleanup: .%.last_cleanup: % $(dict)
34
	$(bin)/in_place $< $(bin)/translate 0 $(dict)
32 35
	$(bin)/in_place $< $(bin)/sort 2 0
33 36
	touch $@
34 37
	$(MAKE) VegCore-VegBIEN.unsourced_terms.csv
......
38 41
	$(bin)/in_place $< $(bin)/sort_map
39 42
	touch $@
40 43

  
41
.VegCore-VegBIEN.csv.last_cleanup: .%.last_cleanup: %
44
.VegCore-VegBIEN.csv.last_cleanup: .%.last_cleanup: % $(dict) $(vocab)
45
	$(bin)/in_place $< $(bin)/translate 0 $(dict)
46
	$(bin)/in_place $< $(bin)/canon 0 $(vocab)
42 47
	$(bin)/in_place $< $(bin)/sort_map
43 48
	touch $@
44 49
	$(bin)/review 1 <$< >for_review/$<

Also available in: Unified diff