Revision 7483
Added by Aaron Marcuse-Kubitza almost 12 years ago
Makefile | ||
---|---|---|
14 | 14 |
|
15 | 15 |
##### General targets |
16 | 16 |
|
17 |
all: _always VegCore.csv Veg+-VegCore.csv VegCore.tables.redmine\ |
|
18 |
$(inputCoreMaps) ; |
|
17 |
all: _always $(vocab) $(dict) VegCore.tables.redmine $(inputCoreMaps) ; |
|
19 | 18 |
|
20 | 19 |
clean: _always |
21 | 20 |
$(RM) $(all) |
... | ... | |
27 | 26 |
VegCore.htm: |
28 | 27 |
php -r 'fpassthru(fopen("https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/VegCore", "r"));' >$@ |
29 | 28 |
|
30 |
VegCore.csv: VegCore.htm
|
|
29 |
$(vocab): VegCore.htm
|
|
31 | 30 |
(echo VegCore; $(sed) -n 's/^.*<h[24][^>]*><a href="#[^>]*>(([a-z]|[A-Z]{2})[^<]*)<\/a><a href="#[^"-]+".*$$/\1/p'\ |
32 | 31 |
|sort -u) <$< >$@ |
33 | 32 |
|
34 |
Veg+-VegCore.csv: VegCore.htm
|
|
33 |
$(dict): VegCore.htm
|
|
35 | 34 |
(echo "Veg+,VegCore"; $(bin)/redmine_synonyms|grep -vE '^\??[A-Z][a-z]')\ |
36 | 35 |
<$< >$@ |
37 | 36 |
# Canonicalize alternatives of ambiguous terms using unambiguous mappings |
... | ... | |
48 | 47 |
$(sed) -n 's/^.*$$/[[VegCore#&|&]]/p' <$< >$@ |
49 | 48 |
|
50 | 49 |
# This tracks VegCore terms that are mapped to VegBIEN but not documented in |
51 |
# VegCore.csv. This file is *not* svn:ignored, so it will show up with a ? when
|
|
50 |
# $(vocab). This file is *not* svn:ignored, so it will show up with a ? when
|
|
52 | 51 |
# the user runs `svn st` if there are any unsourced terms. |
53 |
VegCore-VegBIEN.unsourced_terms.csv: VegCore-VegBIEN.csv VegCore.csv
|
|
52 |
VegCore-VegBIEN.unsourced_terms.csv: VegCore-VegBIEN.csv $(vocab)
|
|
54 | 53 |
$(bin)/filter_out_ci 0 <$+ >$@ |
55 | 54 |
$(bin)/autoremove $@ |
56 | 55 |
|
Also available in: Unified diff
mappings/Makefile: Replaced occurrences of VegCore.csv with $(vocab) and Veg+-VegCore.csv with $(dict)