Revision 4599
Added by Aaron Marcuse-Kubitza about 12 years ago
mappings.Makefile | ||
---|---|---|
4 | 4 |
|
5 | 5 |
missingMappingTypes = join non-empty_join input |
6 | 6 |
|
7 |
missing_mappings: _always $(missingMappingTypes:%=missing_%_mappings) ; |
|
7 |
missing_mappings: _always $(missingMappingTypes:%=missing_%_mappings)\ |
|
8 |
unmapped_terms.csv new_terms.csv ; |
|
8 | 9 |
|
9 | 10 |
missingMappingsMsg = Missing $(*2Space) mappings:$(if\ |
10 | 11 |
$(filter join,$*), (indicates mapping to invalid location)) |
... | ... | |
12 | 13 |
missing_%_mappings: _always # stem is one of $(missingMappingTypes) |
13 | 14 |
@echo $(emph)"$(missingMappingsMsg)"$(endEmph) |
14 | 15 |
@$(missingMappingsCmd) |
16 |
|
|
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) |
Also available in: Unified diff
lib/mappings.Makefile: Added unmapped_terms.csv, new_terms.csv which are generated by combining the correspondingly-named files in $(termsSubdirs)