1 |
196
|
aaronmk
|
all: FORCE VegX-VegBIEN.organisms.csv
|
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 |
196
|
aaronmk
|
VegX-*.plots.csv VegX-VegBIEN.organisms.csv
|
13 |
|
|
|
14 |
188
|
aaronmk
|
clean: FORCE
|
15 |
196
|
aaronmk
|
$(RM) $(all)
|
16 |
188
|
aaronmk
|
|
17 |
198
|
aaronmk
|
|
18 |
188
|
aaronmk
|
VegX-VegBIEN.organisms.csv: \
|
19 |
|
|
VegX-VegBank.organisms.csv \
|
20 |
|
|
VegBank-VegBIEN.organisms.csv
|
21 |
191
|
aaronmk
|
../scripts/util/join_passthru $+|../scripts/util/sort 1 0 >$@
|
22 |
188
|
aaronmk
|
|
23 |
198
|
aaronmk
|
|
24 |
197
|
aaronmk
|
plots: $(subst .organisms.,.plots.,$(wildcard VegX-*.organisms.csv))
|
25 |
|
|
|
26 |
188
|
aaronmk
|
chRoot = ../scripts/util/ch_root <$< >$@
|
27 |
|
|
|
28 |
|
|
chRoot2PlotsLeftVegx =\
|
29 |
|
|
env \
|
30 |
|
|
left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation' \
|
31 |
|
|
left_out_root='/*s/plotObservation' \
|
32 |
|
|
$(chRoot)
|
33 |
|
|
|
34 |
|
|
VegX-VegBank.plots.csv: VegX-VegBank.organisms.csv
|
35 |
|
|
$(chRoot2PlotsVegxVegbank)
|
36 |
|
|
chRoot2PlotsVegxVegbank =\
|
37 |
|
|
env \
|
38 |
|
|
right_in_root='/taxonObservation/*_ID/observation' \
|
39 |
|
|
right_out_root='/observation' \
|
40 |
|
|
$(chRoot2PlotsLeftVegx)
|
41 |
|
|
|
42 |
|
|
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv
|
43 |
|
|
$(chRoot2PlotsVegxVegbien)
|
44 |
|
|
chRoot2PlotsVegxVegbien =\
|
45 |
|
|
env \
|
46 |
200
|
aaronmk
|
right_in_root='/taxonoccurrence/*_ID/plotevent' \
|
47 |
188
|
aaronmk
|
right_out_root='/plotevent' \
|
48 |
|
|
$(chRoot2PlotsLeftVegx)
|