Project

General

Profile

1
all: _always plots
2
	./join VegX VegBIEN
3
	./review
4

    
5
.SUFFIXES:
6

    
7
_always:
8
.PHONY: _always
9

    
10
all = $(wildcard for_review/*) $(filter-out VegX-%,$(wildcard *-VegBIEN.*.csv))
11

    
12
clean: _always
13
	$(RM) $(all)
14

    
15
remake: _always clean all ;
16

    
17
#####
18

    
19
bin = ../bin
20
chRoot = $(bin)/ch_root <$< >$@
21

    
22
VegX-VegBIEN.organisms.csv: _always
23
	$(bin)/in_place $@ $(bin)/simplify_xpath
24
	$(bin)/in_place $@ $(bin)/sort 1 0
25

    
26
#####
27

    
28
vegxVegbienGenMaps := VegX-VegBIEN.plots.csv VegX-VegBIEN.stems.csv
29

    
30
plots: _always $(vegxVegbienGenMaps) ;
31

    
32
all += $(vegxVegbienGenMaps)
33

    
34
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv
35
	env \
36
left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation' \
37
left_out_root='/*s/plotObservation' \
38
right_in_root='/taxonoccurrence/*_id/locationevent' \
39
right_out_root='/locationevent' \
40
$(chRoot)
41

    
42
VegX-VegBIEN.stems.csv: VegX-VegBIEN.organisms.csv
43
	env \
44
left_in_root='/*s/individualOrganismObservation->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]' \
45
left_out_root='/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]' \
46
right_in_root='/taxonoccurrence/aggregateoccurrence/individualplant/stem' \
47
right_out_root='/stem' \
48
$(chRoot)
(1-1/17)