Project

General

Profile

« Previous | Next » 

Revision 4611

lib/mappings.Makefile: Removed no longer needed missing_%_mappings targets, since unmapped_terms.csv and new_terms.csv now serve the same purpose in a more efficient way

View differences:

mappings.Makefile
1
ifndef missingMappingsCmd
2
$(error $$(missingMappingsCmd) required)
3
endif
4 1
ifndef termsSubdirs
5 2
$(error $$(termsSubdirs) required)
6 3
endif
7 4

  
8
missingMappingTypes = join non-empty_join input
5
missing_mappings: _always unmapped_terms.csv new_terms.csv ;
9 6

  
10
missing_mappings: _always $(missingMappingTypes:%=missing_%_mappings)\
11
unmapped_terms.csv new_terms.csv ;
12

  
13
missingMappingsMsg = Missing $(*2Space) mappings:$(if\
14
$(filter join,$*), (indicates mapping to invalid location))
15

  
16
missing_%_mappings: _always # stem is one of $(missingMappingTypes)
17
	@echo $(emph)"$(missingMappingsMsg)"$(endEmph)
18
	@$(missingMappingsCmd)
19

  
20 7
catTerms = $(if $(+w),cat $(+w)|env -i sort -u >$@; $(bin)/autoremove $@)
21 8

  
22 9
unmapped_terms.csv: $(termsSubdirs:%=%/unmapped_terms.csv)

Also available in: Unified diff