Revision 4106
Added by Aaron Marcuse-Kubitza over 12 years ago
inputs/input.Makefile | ||
---|---|---|
249 | 249 |
##### Mapping |
250 | 250 |
|
251 | 251 |
+maps = $(filter maps/% $(mappings)/%,$(+_)) |
252 |
map = $(if $(srcs),$(withCatSrcs),\ |
|
253 |
$(error No input file src/$*/*.{$(exts)}))\
|
|
254 |
$(root)/map $(+maps)
|
|
252 |
map = $(if $(srcs),$(withCatSrcs) $(root)/map $(+maps),\
|
|
253 |
$(shell echo Warning: No input file src/$*/*.{$(exts)} >&2)false)
|
|
254 |
# need false to run some command, when prefixed by `env ...` below
|
|
255 | 255 |
map2db = $(if $(use_staged),env in_database=vegbien in_schema=$(datasrc)\ |
256 | 256 |
in_table=$*) env out_database=vegbien $(map) |
257 | 257 |
|
Also available in: Unified diff
input.Makefile: Mapping: If table subdir contains no input files, print warning instead of aborting. This situation occurs when renaming a version-controlled directory, whose previous version persists as an empty dir until committing.