1 |
212
|
aaronmk
|
all: FORCE VegBank-VegBIEN
|
2 |
197
|
aaronmk
|
$(MAKE) plots
|
3 |
198
|
aaronmk
|
./join VegX VegBank
|
4 |
|
|
./join VegX VegBIEN
|
5 |
199
|
aaronmk
|
./review
|
6 |
150
|
aaronmk
|
|
7 |
|
|
FORCE:
|
8 |
188
|
aaronmk
|
|
9 |
199
|
aaronmk
|
all =\
|
10 |
|
|
$(wildcard for_review/*.csv) \
|
11 |
|
|
$(filter-out VegX-% VegBank-%,$(wildcard *-VegBank.*.csv)) \
|
12 |
212
|
aaronmk
|
VegX-*.plots.csv VegX-VegBIEN.organisms.csv schemas/vegbien.sql
|
13 |
196
|
aaronmk
|
|
14 |
188
|
aaronmk
|
clean: FORCE
|
15 |
196
|
aaronmk
|
$(RM) $(all)
|
16 |
188
|
aaronmk
|
|
17 |
198
|
aaronmk
|
|
18 |
212
|
aaronmk
|
VegBank-VegBIEN: schemas/vegbien.sql VegX-VegBIEN.organisms.csv
|
19 |
188
|
aaronmk
|
|
20 |
218
|
aaronmk
|
repl = ../scripts/util/repl
|
21 |
198
|
aaronmk
|
|
22 |
212
|
aaronmk
|
schemas/vegbien.sql: schemas/vegbank.sql
|
23 |
218
|
aaronmk
|
$(repl) <$< VegBank-VegBIEN.schema.csv|$(repl) VegBank-VegBIEN.csv >$@
|
24 |
212
|
aaronmk
|
|
25 |
|
|
VegX-VegBIEN.organisms.csv: VegX-VegBank.organisms.csv
|
26 |
218
|
aaronmk
|
$(repl) <$< VegBank-VegBIEN.csv 1 >$@
|
27 |
212
|
aaronmk
|
|
28 |
|
|
|
29 |
197
|
aaronmk
|
plots: $(subst .organisms.,.plots.,$(wildcard VegX-*.organisms.csv))
|
30 |
|
|
|
31 |
188
|
aaronmk
|
chRoot = ../scripts/util/ch_root <$< >$@
|
32 |
|
|
|
33 |
|
|
chRoot2PlotsLeftVegx =\
|
34 |
|
|
env \
|
35 |
|
|
left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation' \
|
36 |
|
|
left_out_root='/*s/plotObservation' \
|
37 |
|
|
$(chRoot)
|
38 |
|
|
|
39 |
|
|
VegX-VegBank.plots.csv: VegX-VegBank.organisms.csv
|
40 |
|
|
$(chRoot2PlotsVegxVegbank)
|
41 |
|
|
chRoot2PlotsVegxVegbank =\
|
42 |
|
|
env \
|
43 |
|
|
right_in_root='/taxonObservation/*_ID/observation' \
|
44 |
|
|
right_out_root='/observation' \
|
45 |
|
|
$(chRoot2PlotsLeftVegx)
|
46 |
|
|
|
47 |
|
|
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv
|
48 |
|
|
$(chRoot2PlotsVegxVegbien)
|
49 |
|
|
chRoot2PlotsVegxVegbien =\
|
50 |
|
|
env \
|
51 |
200
|
aaronmk
|
right_in_root='/taxonoccurrence/*_ID/plotevent' \
|
52 |
188
|
aaronmk
|
right_out_root='/plotevent' \
|
53 |
|
|
$(chRoot2PlotsLeftVegx)
|