Project

General

Profile

« Previous | Next » 

Revision 5067

mappings/Makefile: .Veg+-VegCore.csv.last_cleanup: Translate VegCore terms using itself so that any mapping to another Veg+ term automatically becomes a mapping to a VegCore term. .VegX-VegCore.csv.last_cleanup: Translate VegCore terms using Veg+-VegCore.csv to keep the terms up to date.

View differences:

mappings/Makefile
37 37
	$(MAKE) VegCore-VegBIEN.unsourced_terms.csv
38 38

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

  
44 46
.VegCore-VegBIEN.csv.last_cleanup: .%.last_cleanup: % $(dict) $(vocab)
45 47
	$(bin)/in_place $< $(bin)/translate 0 $(dict)

Also available in: Unified diff