Project

General

Profile

1
all: FORCE VegX-VegBIEN.organisms.csv
2
	$(MAKE) $(subst .organisms.,.plots.,$(shell echo VegX-*.organisms.csv))
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
chRoot = ../scripts/util/ch_root <$< >$@
20

    
21
chRoot2PlotsLeftVegx =\
22
	env \
23
	left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation' \
24
	left_out_root='/*s/plotObservation' \
25
	$(chRoot)
26

    
27
VegX-VegBank.plots.csv: VegX-VegBank.organisms.csv
28
	$(chRoot2PlotsVegxVegbank)
29
chRoot2PlotsVegxVegbank =\
30
	env \
31
	right_in_root='/taxonObservation/*_ID/observation' \
32
	right_out_root='/observation' \
33
	$(chRoot2PlotsLeftVegx)
34

    
35
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv
36
	$(chRoot2PlotsVegxVegbien)
37
chRoot2PlotsVegxVegbien =\
38
	env \
39
	right_in_root='/taxonObservation/*_ID/plotevent' \
40
	right_out_root='/plotevent' \
41
	$(chRoot2PlotsLeftVegx)
(1-1/18)