1 |
3764
|
aaronmk
|
ifndef missingMappingsCmd
|
2 |
|
|
$(error $$(missingMappingsCmd) required)
|
3 |
|
|
endif
|
4 |
|
|
|
5 |
|
|
missingMappingTypes = join non-empty_join input
|
6 |
|
|
|
7 |
4599
|
aaronmk
|
missing_mappings: _always $(missingMappingTypes:%=missing_%_mappings)\
|
8 |
|
|
unmapped_terms.csv new_terms.csv ;
|
9 |
3764
|
aaronmk
|
|
10 |
|
|
missingMappingsMsg = Missing $(*2Space) mappings:$(if\
|
11 |
|
|
$(filter join,$*), (indicates mapping to invalid location))
|
12 |
|
|
|
13 |
|
|
missing_%_mappings: _always # stem is one of $(missingMappingTypes)
|
14 |
|
|
@echo $(emph)"$(missingMappingsMsg)"$(endEmph)
|
15 |
|
|
@$(missingMappingsCmd)
|
16 |
4599
|
aaronmk
|
|
17 |
|
|
catTerms = $(if $+,cat $+|env -i sort -u >$@; $(bin)/autoremove $@)
|
18 |
|
|
|
19 |
|
|
unmapped_terms.csv: $(termsSubdirs:%=%/unmapped_terms.csv)
|
20 |
|
|
$(catTerms)
|
21 |
|
|
|
22 |
|
|
new_terms.csv: $(termsSubdirs:%=%/new_terms.csv)
|
23 |
|
|
$(catTerms)
|