1 |
748
|
aaronmk
|
coreMaps := DwC-VegBIEN.specimens.csv VegX-VegBIEN.organisms.csv
|
2 |
744
|
aaronmk
|
chRootMaps := VegX-VegBIEN.plots.csv VegX-VegBIEN.stems.csv
|
3 |
|
|
joinedMaps := $(filter-out DwC-% VegX-%,$(wildcard *-VegBIEN.*.csv))
|
4 |
|
|
all := $(wildcard for_review/*) $(joinedMaps) $(chRootMaps)
|
5 |
|
|
|
6 |
|
|
all: _always $(coreMaps) $(chRootMaps)
|
7 |
|
|
@#./join DwC VegBIEN
|
8 |
198
|
aaronmk
|
./join VegX VegBIEN
|
9 |
199
|
aaronmk
|
./review
|
10 |
150
|
aaronmk
|
|
11 |
223
|
aaronmk
|
.SUFFIXES:
|
12 |
|
|
|
13 |
383
|
aaronmk
|
_always:
|
14 |
|
|
.PHONY: _always
|
15 |
188
|
aaronmk
|
|
16 |
383
|
aaronmk
|
clean: _always
|
17 |
196
|
aaronmk
|
$(RM) $(all)
|
18 |
188
|
aaronmk
|
|
19 |
423
|
aaronmk
|
remake: _always clean all ;
|
20 |
|
|
|
21 |
240
|
aaronmk
|
#####
|
22 |
198
|
aaronmk
|
|
23 |
744
|
aaronmk
|
bin := ../bin
|
24 |
240
|
aaronmk
|
|
25 |
744
|
aaronmk
|
$(coreMaps): _always
|
26 |
612
|
aaronmk
|
$(bin)/in_place $@ $(bin)/simplify_xpath
|
27 |
438
|
aaronmk
|
$(bin)/in_place $@ $(bin)/sort 1 0
|
28 |
350
|
aaronmk
|
|
29 |
240
|
aaronmk
|
#####
|
30 |
212
|
aaronmk
|
|
31 |
744
|
aaronmk
|
chRoot = $(bin)/ch_root <$< >$@
|
32 |
197
|
aaronmk
|
|
33 |
438
|
aaronmk
|
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 |
681
|
aaronmk
|
right_in_root='/taxonoccurrence/aggregateoccurrence/*_id/plantobservation/stemobservation' \
|
46 |
673
|
aaronmk
|
right_out_root='/stemobservation' \
|
47 |
439
|
aaronmk
|
$(chRoot)
|