Revision 1983
Added by Aaron Marcuse-Kubitza about 12 years ago
inputs/input.Makefile | ||
---|---|---|
1 | 1 |
##### Configuration |
2 | 2 |
|
3 | 3 |
# Command line |
4 |
debug ?= |
|
4 | 5 |
log ?= $(if $(test),,1) |
5 | 6 |
profile ?= |
7 |
quiet ?= |
|
6 | 8 |
reverify ?= 1 |
7 |
debug ?= |
|
8 |
quiet ?= |
|
9 |
use_staged ?= |
|
9 | 10 |
|
10 | 11 |
# Makefile |
11 | 12 |
tablesSort ?= plots organisms stems specimens |
... | ... | |
246 | 247 |
+maps = $(filter maps/% $(mappings)/%,$(+_)) |
247 | 248 |
<in = $(firstword $(filter-out $(+maps),$(+_))) |
248 | 249 |
map = $(if $(<in),<$(<in),\ |
250 |
$(if $(use_staged),env in_database=vegbien in_schema=$(datasrc) in_table=$*,\ |
|
249 | 251 |
$(if $(srcs),$(withCatSrcs),\ |
250 | 252 |
$(if $(mapEnv),env $(mapEnv),\ |
251 |
$(error No input file src/*.$*.{$(exts)}))))\ |
|
253 |
$(error No input file src/*.$*.{$(exts)})))))\
|
|
252 | 254 |
$(root)/map $(+maps) |
253 | 255 |
map2db = env out_database=vegbien $(map) |
254 | 256 |
|
Also available in: Unified diff
input.Makefile: Mapping: Use the staging tables instead of any flat files if use_staged is specified