Project

General

Profile

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

    
7
FORCE:
8

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

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

    
15

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

    
21

    
22
plots: $(subst .organisms.,.plots.,$(wildcard VegX-*.organisms.csv))
23

    
24
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)
(1-1/23)