Revision 4886
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/mappings.Makefile | ||
---|---|---|
5 | 5 |
missing_mappings: _always unmapped_terms.csv new_terms.csv ; |
6 | 6 |
$(if $(+w),tail -n +1 $(+w)) |
7 | 7 |
|
8 |
catTerms = $(if $(+w),cat $(+w)|env -i sort -u >$@; $(bin)/autoremove $@)
|
|
8 |
catTerms = $(if $+,cat $+|env -i sort -u >$@; $(bin)/autoremove $@)
|
|
9 | 9 |
|
10 |
unmapped_terms.csv: $(termsSubdirs:%=%/unmapped_terms.csv)
|
|
10 |
unmapped_terms.csv: $(wildcard $(termsSubdirs:%=%/unmapped_terms.csv))
|
|
11 | 11 |
$(catTerms) |
12 | 12 |
|
13 |
new_terms.csv: $(termsSubdirs:%=%/new_terms.csv)
|
|
13 |
new_terms.csv: $(wildcard $(termsSubdirs:%=%/new_terms.csv))
|
|
14 | 14 |
$(catTerms) |
Also available in: Unified diff
lib/mappings.Makefile: unmapped_terms.csv, new_terms.csv: Only remake if newer than existing %/unmapped_terms.csv, %/new_terms.csv which haven't been autoremoved. This avoids always remaking every unmapped_terms.csv, new_terms.csv whenever `make missing_mappings` is run. Note that these files will automatically be remade whenever their corresponding map.csv changes, so it is not necessary to actually remake %/unmapped_terms.csv, %/new_terms.csv; they are prerequisites only so that their modification time may be checked to determine whether unmapped_terms.csv, new_terms.csv needs to be remade.