Project

General

Profile

1 188 aaronmk
# Dynamically-generated organisms maps
2
genOrganisms = VegX-VegBIEN.organisms.csv
3
4
all = $(genOrganisms) \
5
$(subst .organisms.,.plots.,$(genOrganisms) $(wildcard VegX-*.organisms.csv))
6
7
all: FORCE $(all)
8 148 aaronmk
	./join_all_vegbank
9
	./format_all_for_review
10 150 aaronmk
11
FORCE:
12 188 aaronmk
13
clean: FORCE
14
	rm $(foreach item,$(sort $(all)),$(wildcard $(item)))
15
16
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
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)