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/*.csv) \
|
11
|
$(filter-out VegX-%,$(wildcard *-VegBIEN.*.csv)) VegX-*.plots.csv
|
12
|
|
13
|
clean: _always
|
14
|
$(RM) $(all)
|
15
|
|
16
|
remake: _always clean all ;
|
17
|
|
18
|
#####
|
19
|
|
20
|
bin = ../bin
|
21
|
repl = $(bin)/repl
|
22
|
sort = $(bin)/sort 1 0
|
23
|
chRoot = $(bin)/ch_root <$< >$@
|
24
|
|
25
|
VegX-VegBIEN.organisms.csv: _always
|
26
|
$(bin)/in_place $@ $(sort)
|
27
|
|
28
|
#####
|
29
|
|
30
|
plots: _always $(subst .organisms.,.plots.,$(wildcard VegX-*.organisms.csv)) ;
|
31
|
|
32
|
chRoot2PlotsLeftVegx =\
|
33
|
env \
|
34
|
left_in_root='/*s/individualOrganismObservation/*ID->/*s/plotObservation' \
|
35
|
left_out_root='/*s/plotObservation' \
|
36
|
$(chRoot)
|
37
|
|
38
|
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv
|
39
|
$(chRoot2PlotsVegxVegbien)
|
40
|
chRoot2PlotsVegxVegbien =\
|
41
|
env \
|
42
|
right_in_root='/taxonoccurrence/*_id/plotevent' \
|
43
|
right_out_root='/plotevent' \
|
44
|
$(chRoot2PlotsLeftVegx)
|