Revision 958
Added by Aaron Marcuse-Kubitza almost 13 years ago
inputs/input.Makefile | ||
---|---|---|
97 | 97 |
|
98 | 98 |
+maps = $(filter maps/% $(mappings)/%,$(+_)) |
99 | 99 |
<in = $(firstword $(filter-out $(+maps),$(+_)) $(wildcard $(exts:%=src/*.$*.%))) |
100 |
map = $(if $(<in),<$(<in) ,$(if $(mapEnv),env $(mapEnv) ))$(root)/map $(+maps) |
|
100 |
map = $(if $(<in),<$(<in) ,$(if $(mapEnv),env $(mapEnv) ,$(error\ |
|
101 |
No input file src/*.{$(tables)}.{$(exts)} )))$(root)/map $(+maps) |
|
101 | 102 |
map2db = env out_database=vegbien $(map) |
102 | 103 |
|
103 | 104 |
##### Import to VegBIEN |
Also available in: Unified diff
input.Makefile: Print error message if no input file found (for file input type). This fixes a bug where map would just take input from stdin when no input file redirect or input DB env vars were specified.