Project

General

Profile

1 196 aaronmk
all: FORCE VegX-VegBIEN.organisms.csv
2 197 aaronmk
	$(MAKE) plots
3 148 aaronmk
	./join_all_vegbank
4
	./format_all_for_review
5 150 aaronmk
6
FORCE:
7 188 aaronmk
8 196 aaronmk
all = $(filter-out VegX-% VegBank-%,$(wildcard *-VegBank.*.csv)) \
9
VegX-*.plots.csv VegX-VegBIEN.organisms.csv
10
11 188 aaronmk
clean: FORCE
12 196 aaronmk
	$(RM) $(all)
13 188 aaronmk
14
VegX-VegBIEN.organisms.csv: \
15
VegX-VegBank.organisms.csv \
16
VegBank-VegBIEN.organisms.csv
17 191 aaronmk
	../scripts/util/join_passthru $+|../scripts/util/sort 1 0 >$@
18 188 aaronmk
19 197 aaronmk
plots: $(subst .organisms.,.plots.,$(wildcard VegX-*.organisms.csv))
20
21 188 aaronmk
chRoot = ../scripts/util/ch_root <$< >$@
22
23
chRoot2PlotsLeftVegx =\
24
	env \
25
	left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation' \
26
	left_out_root='/*s/plotObservation' \
27
	$(chRoot)
28
29
VegX-VegBank.plots.csv: VegX-VegBank.organisms.csv
30
	$(chRoot2PlotsVegxVegbank)
31
chRoot2PlotsVegxVegbank =\
32
	env \
33
	right_in_root='/taxonObservation/*_ID/observation' \
34
	right_out_root='/observation' \
35
	$(chRoot2PlotsLeftVegx)
36
37
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv
38
	$(chRoot2PlotsVegxVegbien)
39
chRoot2PlotsVegxVegbien =\
40
	env \
41
	right_in_root='/taxonObservation/*_ID/plotevent' \
42
	right_out_root='/plotevent' \
43
	$(chRoot2PlotsLeftVegx)