Project

General

Profile

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

    
7
FORCE:
8

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

    
14
clean: FORCE
15
	$(RM) $(all)
16

    
17

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

    
23

    
24
plots: $(subst .organisms.,.plots.,$(wildcard VegX-*.organisms.csv))
25

    
26
chRoot = ../scripts/util/ch_root <$< >$@
27

    
28
chRoot2PlotsLeftVegx =\
29
	env \
30
	left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation' \
31
	left_out_root='/*s/plotObservation' \
32
	$(chRoot)
33

    
34
VegX-VegBank.plots.csv: VegX-VegBank.organisms.csv
35
	$(chRoot2PlotsVegxVegbank)
36
chRoot2PlotsVegxVegbank =\
37
	env \
38
	right_in_root='/taxonObservation/*_ID/observation' \
39
	right_out_root='/observation' \
40
	$(chRoot2PlotsLeftVegx)
41

    
42
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv
43
	$(chRoot2PlotsVegxVegbien)
44
chRoot2PlotsVegxVegbien =\
45
	env \
46
	right_in_root='/taxonoccurrence/*_ID/plotevent' \
47
	right_out_root='/plotevent' \
48
	$(chRoot2PlotsLeftVegx)
(1-1/23)