Project

General

Profile

« Previous | Next » 

Revision 4594

input.Makefile: Maps building: %/.map.csv.last_cleanup: Generate reports on new and unmapped terms in map.csv

View differences:

input.Makefile
282 282

  
283 283
# Via maps cleanup
284 284
ifneq ($(filter %/.map.csv.last_cleanup,$(MAKECMDGOALS)),)
285
%/.map.csv.last_cleanup: %/map.csv $(coreMap) $(vocab) $(dict)
285
%/.map.csv.last_cleanup %/unmapped_terms.csv %/new_terms.csv: %/map.csv\
286
$(coreMap) $(vocab) $(dict)
286 287
	$(bin)/in_place $< $(bin)/canon 1 $(word 3,$+)
287 288
	$(bin)/in_place $< $(bin)/translate 1 $(word 4,$+)
288 289
	$(bin)/in_place $< env ignore=1 $(bin)/subtract $(word 2,$+) 0 1 2
290
	$(bin)/filter_out_ci 1 $(word 3,$+) <$<|$(bin)/cols 1 >$*/unmapped_terms.csv
291
	$(bin)/filter_out_ci 0 $(word 3,$+) <$<|$(bin)/cols 0 >$*/new_terms.csv
289 292
	touch $@
290 293
# Include comment column so commented mappings are never removed
291 294
else

Also available in: Unified diff