Revision 240
Added by Aaron Marcuse-Kubitza about 13 years ago
Makefile | ||
---|---|---|
2 | 2 |
|
3 | 3 |
SED = sed -$(if $(filter Darwin,$(os)),E,r) |
4 | 4 |
|
5 |
repl = ../scripts/util/repl |
|
6 |
sort = ../scripts/util/sort 1 0 |
|
7 |
chRoot = ../scripts/util/ch_root <$< >$@ |
|
8 |
empty = $(SED) -n \ |
|
9 |
's/^CREATE TABLE ([0-9A-Za-z_]+) \($$/TRUNCATE \1 CASCADE;/p' <$< >$@ |
|
5 |
##### |
|
10 | 6 |
|
11 |
misc = schemas/vegbien.sql schemas/vegbien_empty.sql VegX-VegBIEN.organisms.csv |
|
12 |
|
|
13 |
|
|
14 |
all: _not_file $(misc) |
|
7 |
all: _not_file misc |
|
15 | 8 |
$(MAKE) plots |
16 | 9 |
./join VegX VegBank |
17 | 10 |
./join VegX VegBIEN |
18 | 11 |
./review |
19 |
.PRECIOUS: $(misc) |
|
20 | 12 |
|
21 | 13 |
.SUFFIXES: |
22 | 14 |
|
23 | 15 |
_not_file: |
24 | 16 |
.PHONY: _not_file |
25 | 17 |
|
18 |
misc = schemas/vegbien.sql schemas/vegbien_empty.sql VegX-VegBIEN.organisms.csv |
|
19 |
|
|
26 | 20 |
all =\ |
27 | 21 |
$(wildcard for_review/*.csv) \ |
28 | 22 |
$(filter-out VegX-% VegBank-%,$(wildcard *-VegBank.*.csv)) \ |
... | ... | |
31 | 25 |
clean: _not_file |
32 | 26 |
$(RM) $(all) |
33 | 27 |
|
28 |
##### |
|
34 | 29 |
|
30 |
misc: $(misc) |
|
31 |
.PRECIOUS: $(misc) |
|
32 |
|
|
33 |
repl = ../scripts/util/repl |
|
34 |
sort = ../scripts/util/sort 1 0 |
|
35 |
chRoot = ../scripts/util/ch_root <$< >$@ |
|
36 |
empty = $(SED) -n \ |
|
37 |
's/^CREATE TABLE ([0-9A-Za-z_]+) \($$/TRUNCATE \1 CASCADE;/p' <$< >$@ |
|
38 |
|
|
35 | 39 |
schemas/vegbien.sql: schemas/vegbank.sql |
36 | 40 |
$(repl) <$< VegBank-VegBIEN.schema.csv|$(repl) VegBank-VegBIEN.csv >$@ |
37 | 41 |
|
... | ... | |
41 | 45 |
VegX-VegBIEN.organisms.csv: VegX-VegBank.organisms.csv |
42 | 46 |
$(repl) <$< VegBank-VegBIEN.csv 1|$(sort) >$@ |
43 | 47 |
|
48 |
##### |
|
44 | 49 |
|
45 | 50 |
plots: _not_file $(subst .organisms.,.plots.,$(wildcard VegX-*.organisms.csv)) |
46 | 51 |
|
Also available in: Unified diff
mappings/Makefile: Cleaned up