Revision 339
Added by Aaron Marcuse-Kubitza over 12 years ago
input.Makefile | ||
---|---|---|
4 | 4 |
vegbienMaps := $(subst .VegX.,.VegBIEN.,$(vegxMaps)) |
5 | 5 |
|
6 | 6 |
root := ../.. |
7 |
bin := $(root)/bin |
|
8 |
mappings := $(root)/mappings |
|
9 |
map := $(root)/map |
|
10 |
map2vegbien := env out_database=vegbien $(map) |
|
7 |
map := env out_database=vegbien $(root)/map |
|
11 | 8 |
|
12 | 9 |
##### |
13 | 10 |
|
... | ... | |
30 | 27 |
##### |
31 | 28 |
|
32 | 29 |
map.VegBIEN.%.csv: map.VegX.%.csv |
33 |
$(bin)/join_sort <$< $(mappings)/VegX-VegBIEN.$(*F).csv >$@
|
|
30 |
$(root)/bin/join_sort <$< $(root)/mappings/VegX-VegBIEN.$(*F).csv >$@
|
|
34 | 31 |
.PRECIOUS: map.VegBIEN.%.csv |
35 | 32 |
|
33 |
logs := $(wildcard *.log) |
|
34 |
|
|
35 |
rm_logs: _not_file |
|
36 |
$(RM) $(logs) |
|
37 |
|
|
36 | 38 |
##### |
37 | 39 |
|
38 | 40 |
ifdef db |
... | ... | |
45 | 47 |
|
46 | 48 |
all: _not_file $(vegbienMaps:map.VegBIEN.%.csv=import-%) |
47 | 49 |
|
50 |
log = $*$(if $(n),.n=$(n),).log |
|
51 |
|
|
48 | 52 |
import-%: map.VegBIEN.%.csv _not_file |
49 |
env $(mapEnv) $(map2vegbien) $<
|
|
53 |
(set -x; time env commit=1 $(mapEnv) $(map) $<) 2>&1 | tee -a $(log)
|
|
50 | 54 |
|
51 | 55 |
## |
52 | 56 |
|
Also available in: Unified diff
input.Makefile: Save map output in log file