Project

General

Profile

1
all: FORCE VegX-VegBIEN.organisms.csv
2
	$(MAKE) plots
3
	./join_all_vegbank
4
	./format_all_for_review
5

    
6
FORCE:
7

    
8
all = $(filter-out VegX-% VegBank-%,$(wildcard *-VegBank.*.csv)) \
9
VegX-*.plots.csv VegX-VegBIEN.organisms.csv
10

    
11
clean: FORCE
12
	$(RM) $(all)
13

    
14
VegX-VegBIEN.organisms.csv: \
15
VegX-VegBank.organisms.csv \
16
VegBank-VegBIEN.organisms.csv
17
	../scripts/util/join_passthru $+|../scripts/util/sort 1 0 >$@
18

    
19
plots: $(subst .organisms.,.plots.,$(wildcard VegX-*.organisms.csv))
20

    
21
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)
(1-1/18)