Revision 785
Added by Aaron Marcuse-Kubitza almost 13 years ago
inputs/Makefile | ||
---|---|---|
1 |
##### Vars/functions |
|
2 |
|
|
1 | 3 |
# Make |
2 | 4 |
pathParts = $(shell path="$(1)"; echo "$${path%%/*}" "$${path\#*/}") |
3 | 5 |
topDir = $(firstword $(pathParts)) |
... | ... | |
6 | 8 |
--makefile=../input.Makefile |
7 | 9 |
# input.Makefile path is relative to subdir |
8 | 10 |
|
9 |
##### |
|
11 |
##### General targets
|
|
10 | 12 |
|
11 | 13 |
all: |
12 | 14 |
|
... | ... | |
30 | 32 |
|
31 | 33 |
%: $(addsuffix %,$(subdirs)) _always ; |
32 | 34 |
|
33 |
##### |
|
35 |
##### SVN
|
|
34 | 36 |
|
35 | 37 |
%-add: _always |
36 | 38 |
svn mkdir $* |
schemas/Makefile | ||
---|---|---|
1 |
##### Vars/functions |
|
2 |
|
|
1 | 3 |
# OS |
2 | 4 |
os = $(shell uname) |
3 | 5 |
|
4 | 6 |
SED = sed -$(if $(filter Darwin,$(os)),E,r) |
5 | 7 |
|
6 |
##### |
|
8 |
##### General targets
|
|
7 | 9 |
|
8 | 10 |
all = vegbien.sql vegbien_empty.sql vegbien.my.sql |
9 | 11 |
|
... | ... | |
23 | 25 |
./$< >$@ |
24 | 26 |
.PRECIOUS: % |
25 | 27 |
|
26 |
##### |
|
28 |
##### VegBIEN DB
|
|
27 | 29 |
|
28 | 30 |
.PRECIOUS: vegbien.sql |
29 | 31 |
|
... | ... | |
33 | 35 |
%_empty.sql: %.sql |
34 | 36 |
$(empty) |
35 | 37 |
|
36 |
##### |
|
38 |
##### MySQL schema for ERD
|
|
37 | 39 |
|
38 | 40 |
repl = ../bin/repl <$+ >$@ |
39 | 41 |
|
mappings/Makefile | ||
---|---|---|
1 |
##### Vars/functions |
|
2 |
|
|
1 | 3 |
coreMaps := DwC-VegBIEN.specimens.csv VegX-VegBIEN.organisms.csv |
2 | 4 |
chRootMaps := VegX-VegBIEN.plots.csv VegX-VegBIEN.stems.csv |
3 | 5 |
joinedMaps := $(filter-out DwC-% VegX-%,$(wildcard *-VegBIEN.*.csv)) |
4 | 6 |
all := $(wildcard for_review/*) $(joinedMaps) $(chRootMaps) |
5 | 7 |
|
8 |
##### General targets |
|
9 |
|
|
6 | 10 |
all: _always $(coreMaps) $(chRootMaps) |
7 | 11 |
@#./join DwC VegBIEN |
8 | 12 |
./join VegX VegBIEN |
... | ... | |
18 | 22 |
|
19 | 23 |
remake: _always clean all ; |
20 | 24 |
|
21 |
##### |
|
25 |
##### Core maps cleanup
|
|
22 | 26 |
|
23 | 27 |
bin := ../bin |
24 | 28 |
|
... | ... | |
30 | 34 |
# Ignore last_cleanup file if it doesn't exist |
31 | 35 |
.%.last_cleanup: |
32 | 36 |
|
33 |
##### |
|
37 |
##### Maps generated with ch_root
|
|
34 | 38 |
|
35 | 39 |
chRoot = $(bin)/ch_root <$< >$@ |
36 | 40 |
|
Also available in: Unified diff
Makefiles: Added documentation labels to each section