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)/sort 1 0
|
24
|
|
25
|
#####
|
26
|
|
27
|
vegxVegbienGenMaps := VegX-VegBIEN.plots.csv VegX-VegBIEN.stems.csv
|
28
|
|
29
|
plots: _always $(vegxVegbienGenMaps) ;
|
30
|
|
31
|
all += $(vegxVegbienGenMaps)
|
32
|
|
33
|
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv
|
34
|
env \
|
35
|
left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation' \
|
36
|
left_out_root='/*s/plotObservation' \
|
37
|
right_in_root='/taxonoccurrence/*_id/plotevent' \
|
38
|
right_out_root='/plotevent' \
|
39
|
$(chRoot)
|
40
|
|
41
|
VegX-VegBIEN.stems.csv: VegX-VegBIEN.organisms.csv
|
42
|
env \
|
43
|
left_in_root='/*s/individualOrganismObservation->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]' \
|
44
|
left_out_root='/*s/individualOrganismObservation[relatedItem/relationshipType=stemParent]' \
|
45
|
right_in_root='/taxonoccurrence/collectiveobservation/individualplant/stemobservation' \
|
46
|
right_out_root='/stemobservation' \
|
47
|
$(chRoot)
|