Project

General

Profile

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