Project

General

Profile

« Previous | Next » 

Revision 4587

input.Makefile: Maps building: %/.map.csv.last_cleanup: Canonicalize map.csv using $(mappings)/$(via).vocab.csv

View differences:

input.Makefile
144 144

  
145 145
coreMap := $(mappings)/$(via)-VegBIEN.csv
146 146
coreSelfMap := $(mappings)/$(via).self.csv
147
vocab := $(mappings)/$(via).vocab.csv
147 148

  
148 149
viaMaps := $(wildcard $(tables:%=%/map.csv))
149 150
viaMaps += $(filter-out $(viaMaps),$(srcMaps:%/src.csv=%/map.csv))
......
280 281

  
281 282
# Via maps cleanup
282 283
ifneq ($(filter %/.map.csv.last_cleanup,$(MAKECMDGOALS)),)
283
%/.map.csv.last_cleanup: %/map.csv $(coreMap)
284
%/.map.csv.last_cleanup: %/map.csv $(coreMap) $(vocab)
285
	$(bin)/in_place $< $(bin)/canon 1 $(word 3,$+)
284 286
	$(bin)/in_place $< env ignore=1 $(bin)/subtract $(word 2,$+) 0 1 2
285 287
	touch $@
286 288
# Include comment column so commented mappings are never removed

Also available in: Unified diff