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 612 aaronmk
	$(bin)/in_place $@ $(bin)/simplify_xpath
24 438 aaronmk
	$(bin)/in_place $@ $(bin)/sort 1 0
25 350 aaronmk
26 240 aaronmk
#####
27 212 aaronmk
28 439 aaronmk
vegxVegbienGenMaps := VegX-VegBIEN.plots.csv VegX-VegBIEN.stems.csv
29 197 aaronmk
30 438 aaronmk
plots: _always $(vegxVegbienGenMaps) ;
31
32
all += $(vegxVegbienGenMaps)
33
34
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv
35 188 aaronmk
	env \
36 439 aaronmk
left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation' \
37
left_out_root='/*s/plotObservation' \
38 525 aaronmk
right_in_root='/taxonoccurrence/*_id/locationevent' \
39
right_out_root='/locationevent' \
40 439 aaronmk
$(chRoot)
41
42
VegX-VegBIEN.stems.csv: VegX-VegBIEN.organisms.csv
43
	env \
44 441 aaronmk
left_in_root='/*s/individualOrganismObservation->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]' \
45 504 aaronmk
left_out_root='/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]' \
46
right_in_root='/taxonoccurrence/aggregateoccurrence/individualplant/stem' \
47 508 aaronmk
right_out_root='/stem' \
48 439 aaronmk
$(chRoot)