Project

General

Profile

1 387 aaronmk
all: _always plots
2 198 aaronmk
	./join VegX VegBIEN
3 199 aaronmk
	./review
4 150 aaronmk
5 223 aaronmk
.SUFFIXES:
6
7 383 aaronmk
_always:
8
.PHONY: _always
9 188 aaronmk
10 438 aaronmk
all = $(wildcard for_review/*) $(filter-out VegX-%,$(wildcard *-VegBIEN.*.csv))
11 196 aaronmk
12 383 aaronmk
clean: _always
13 196 aaronmk
	$(RM) $(all)
14 188 aaronmk
15 423 aaronmk
remake: _always clean all ;
16
17 240 aaronmk
#####
18 198 aaronmk
19 350 aaronmk
bin = ../bin
20
chRoot = $(bin)/ch_root <$< >$@
21 240 aaronmk
22 383 aaronmk
VegX-VegBIEN.organisms.csv: _always
23 438 aaronmk
	$(bin)/in_place $@ $(bin)/sort 1 0
24 350 aaronmk
25 240 aaronmk
#####
26 212 aaronmk
27 439 aaronmk
vegxVegbienGenMaps := VegX-VegBIEN.plots.csv VegX-VegBIEN.stems.csv
28 197 aaronmk
29 438 aaronmk
plots: _always $(vegxVegbienGenMaps) ;
30
31
all += $(vegxVegbienGenMaps)
32
33
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv
34 188 aaronmk
	env \
35 439 aaronmk
left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation' \
36
left_out_root='/*s/plotObservation' \
37 525 aaronmk
right_in_root='/taxonoccurrence/*_id/locationevent' \
38
right_out_root='/locationevent' \
39 439 aaronmk
$(chRoot)
40
41
VegX-VegBIEN.stems.csv: VegX-VegBIEN.organisms.csv
42
	env \
43 441 aaronmk
left_in_root='/*s/individualOrganismObservation->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]' \
44 504 aaronmk
left_out_root='/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]' \
45
right_in_root='/taxonoccurrence/aggregateoccurrence/individualplant/stem' \
46 508 aaronmk
right_out_root='/stem' \
47 439 aaronmk
$(chRoot)