Revision 1188
Added by Aaron Marcuse-Kubitza almost 13 years ago
inputs/input.Makefile | ||
---|---|---|
1 | 1 |
##### Configuration |
2 | 2 |
|
3 | 3 |
nolog ?= $(test) |
4 |
profile ?= $(if $(nolog),,1) |
|
4 | 5 |
exts ?= csv xml |
5 | 6 |
test_n ?= 2 |
6 | 7 |
tablesSort ?= plots organisms stems |
... | ... | |
128 | 129 |
import: _always import-all ; |
129 | 130 |
|
130 | 131 |
log = $(@:-all=)$(if $(n),.n=$(n),).$(date).log |
131 |
import = -(set -x; "time" env commit=1 verbose=1 $(map2db)) $(if $(nolog),,\ |
|
132 |
trace = $(log:.log=.trace) |
|
133 |
import = -(set -x; "time" env commit=1 verbose=1\ |
|
134 |
$(if $(profile),profile_to=$(trace)) $(map2db)) $(if $(nolog),,\ |
|
132 | 135 |
$(if $(n),,>>$(log))) 2>&1$(if $(nolog),,$(if $(n),|tee -a $(log))) |
133 | 136 |
# don't abort on import errors, which often relate to invalid input data |
134 | 137 |
|
... | ... | |
145 | 148 |
|
146 | 149 |
##### Log files from import |
147 | 150 |
|
148 |
logs := $(wildcard *.log) |
|
151 |
logs := $(wildcard *.log *.trace)
|
|
149 | 152 |
|
150 | 153 |
rm_logs: _always |
151 | 154 |
$(RM) $(logs) |
Also available in: Unified diff
input.Makefile: Profile imports into a .trace file unless env var profile=""