Project

General

Profile

1 387 aaronmk
all: _always plots
2 198 aaronmk
	./join VegX VegBIEN
3 199 aaronmk
	./review
4 150 aaronmk
5 223 aaronmk
.SUFFIXES:
6
7 383 aaronmk
_always:
8
.PHONY: _always
9 188 aaronmk
10 382 aaronmk
all = $(wildcard for_review/*.csv) \
11 387 aaronmk
$(filter-out VegX-%,$(wildcard *-VegBIEN.*.csv)) VegX-*.plots.csv
12 196 aaronmk
13 383 aaronmk
clean: _always
14 196 aaronmk
	$(RM) $(all)
15 188 aaronmk
16 423 aaronmk
remake: _always clean all ;
17
18 240 aaronmk
#####
19 198 aaronmk
20 350 aaronmk
bin = ../bin
21
repl = $(bin)/repl
22
sort = $(bin)/sort 1 0
23
chRoot = $(bin)/ch_root <$< >$@
24 240 aaronmk
25 383 aaronmk
VegX-VegBIEN.organisms.csv: _always
26 359 aaronmk
	$(bin)/in_place $@ $(sort)
27 350 aaronmk
28 240 aaronmk
#####
29 212 aaronmk
30 418 aaronmk
plots: _always $(subst .organisms.,.plots.,$(wildcard VegX-*.organisms.csv)) ;
31 197 aaronmk
32 188 aaronmk
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 417 aaronmk
	right_in_root='/taxonoccurrence/*_id/plotevent' \
43 188 aaronmk
	right_out_root='/plotevent' \
44
	$(chRoot2PlotsLeftVegx)