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/*) \
|
11
|
$(filter-out DwC-% VegX-%,$(wildcard *-VegBIEN.*.csv))
|
12
|
|
13
|
clean: _always
|
14
|
$(RM) $(all)
|
15
|
|
16
|
remake: _always clean all ;
|
17
|
|
18
|
#####
|
19
|
|
20
|
bin = ../bin
|
21
|
chRoot = $(bin)/ch_root <$< >$@
|
22
|
|
23
|
VegX-VegBIEN.organisms.csv: _always
|
24
|
$(bin)/in_place $@ $(bin)/simplify_xpath
|
25
|
$(bin)/in_place $@ $(bin)/sort 1 0
|
26
|
|
27
|
#####
|
28
|
|
29
|
vegxVegbienGenMaps := VegX-VegBIEN.plots.csv VegX-VegBIEN.stems.csv
|
30
|
|
31
|
plots: _always $(vegxVegbienGenMaps) ;
|
32
|
|
33
|
all += $(vegxVegbienGenMaps)
|
34
|
|
35
|
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv
|
36
|
env \
|
37
|
left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation' \
|
38
|
left_out_root='/*s/plotObservation' \
|
39
|
right_in_root='/taxonoccurrence/*_id/locationevent' \
|
40
|
right_out_root='/locationevent' \
|
41
|
$(chRoot)
|
42
|
|
43
|
VegX-VegBIEN.stems.csv: VegX-VegBIEN.organisms.csv
|
44
|
env \
|
45
|
left_in_root='/*s/individualOrganismObservation->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]' \
|
46
|
left_out_root='/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]' \
|
47
|
right_in_root='/taxonoccurrence/aggregateoccurrence/plantobservation/stem' \
|
48
|
right_out_root='/stem' \
|
49
|
$(chRoot)
|