1 |
6169
|
aaronmk
|
ifeq ($(origin termsSubdirs),undefined)
|
2 |
4609
|
aaronmk
|
$(error $$(termsSubdirs) required)
|
3 |
|
|
endif
|
4 |
3764
|
aaronmk
|
|
5 |
4611
|
aaronmk
|
missing_mappings: _always unmapped_terms.csv new_terms.csv ;
|
6 |
4614
|
aaronmk
|
$(if $(+w),tail -n +1 $(+w))
|
7 |
3764
|
aaronmk
|
|
8 |
4886
|
aaronmk
|
catTerms = $(if $+,cat $+|env -i sort -u >$@; $(bin)/autoremove $@)
|
9 |
4599
|
aaronmk
|
|
10 |
4886
|
aaronmk
|
unmapped_terms.csv: $(wildcard $(termsSubdirs:%=%/unmapped_terms.csv))
|
11 |
4599
|
aaronmk
|
$(catTerms)
|
12 |
|
|
|
13 |
4886
|
aaronmk
|
new_terms.csv: $(wildcard $(termsSubdirs:%=%/new_terms.csv))
|
14 |
4599
|
aaronmk
|
$(catTerms)
|