Revision 235
Added by Aaron Marcuse-Kubitza almost 13 years ago
Makefile | ||
---|---|---|
1 |
SED = sed -$(if $(filter Darwin,$(shell uname)),E,r)
|
|
1 |
os = $(shell uname)
|
|
2 | 2 |
|
3 |
SED = sed -$(if $(filter Darwin,$(os)),E,r) |
|
4 |
|
|
3 | 5 |
repl = ../scripts/util/repl |
4 | 6 |
sort = ../scripts/util/sort 1 0 |
5 | 7 |
chRoot = ../scripts/util/ch_root <$< >$@ |
... | ... | |
9 | 11 |
misc = schemas/vegbien.sql schemas/vegbien_empty.sql VegX-VegBIEN.organisms.csv |
10 | 12 |
|
11 | 13 |
|
12 |
all: FORCE $(misc)
|
|
14 |
all: _not_file $(misc)
|
|
13 | 15 |
$(MAKE) plots |
14 | 16 |
./join VegX VegBank |
15 | 17 |
./join VegX VegBIEN |
... | ... | |
18 | 20 |
|
19 | 21 |
.SUFFIXES: |
20 | 22 |
|
21 |
FORCE:
|
|
22 |
.PHONY: FORCE
|
|
23 |
_not_file:
|
|
24 |
.PHONY: _not_file
|
|
23 | 25 |
|
24 | 26 |
all =\ |
25 | 27 |
$(wildcard for_review/*.csv) \ |
26 | 28 |
$(filter-out VegX-% VegBank-%,$(wildcard *-VegBank.*.csv)) \ |
27 | 29 |
VegX-*.plots.csv $(misc) |
28 | 30 |
|
29 |
clean: FORCE
|
|
31 |
clean: _not_file
|
|
30 | 32 |
$(RM) $(all) |
31 | 33 |
|
32 | 34 |
|
... | ... | |
40 | 42 |
$(repl) <$< VegBank-VegBIEN.csv 1|$(sort) >$@ |
41 | 43 |
|
42 | 44 |
|
43 |
plots: FORCE $(subst .organisms.,.plots.,$(wildcard VegX-*.organisms.csv))
|
|
45 |
plots: _not_file $(subst .organisms.,.plots.,$(wildcard VegX-*.organisms.csv))
|
|
44 | 46 |
|
45 | 47 |
chRoot2PlotsLeftVegx =\ |
46 | 48 |
env \ |
Also available in: Unified diff
scripts/Makefile: Added dependency installation. Makefiles: Use _not_file instead of FORCE for clarity. Use $(os) var