Project

General

Profile

« Previous | Next » 

Revision 4598

input.Makefile: Maps building: %/.map.csv.last_cleanup: $(newTerms): Autoremove empty terms lists to avoid clutter

View differences:

input.Makefile
287 287
	$(bin)/in_place $< $(bin)/canon 1 $(word 3,$+)
288 288
	$(bin)/in_place $< $(bin)/translate 1 $(word 4,$+)
289 289
	$(bin)/in_place $< env ignore=1 $(bin)/subtract $(word 2,$+) 0 1 2
290
	$(call newTerms,1) >$*/unmapped_terms.csv
291
	$(call newTerms,0) >$*/new_terms.csv
290
	$(call newTerms,1,$*/unmapped_terms.csv)
291
	$(call newTerms,0,$*/new_terms.csv)
292 292
	touch $@
293 293
# Include comment column so commented mappings are never removed
294 294

  
295
newTerms = $(bin)/filter_out_ci $(1) $(word 3,$+) <$<|$(bin)/cols $(1)|tail +2
295
define newTerms
296
$(bin)/filter_out_ci $(1) $(word 3,$+) <$<|$(bin)/cols $(1)|tail +2 >$(2)
297
$(bin)/autoremove $(2)
298
endef
299

  
296 300
else
297 301
%/map.csv: %/src.csv _always
298 302
	$(if $(wildcard $@),,$(if $(wildcard $<),$(CP) $< $@))

Also available in: Unified diff