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