Revision 7047
Added by Aaron Marcuse-Kubitza about 12 years ago
input.Makefile | ||
---|---|---|
6 | 6 |
##### Configuration |
7 | 7 |
|
8 | 8 |
# Command line |
9 |
public_import ?= |
|
9 | 10 |
import_source ?= 1 |
10 | 11 |
log ?= $(if $(test),,1) |
11 | 12 |
profile ?= |
... | ... | |
365 | 366 |
$(if $(n),,&>$(log_)))$(if $(log),$(if $(n), 2>&1|tee -a $(log_)))) |
366 | 367 |
# don't abort on import errors, which often relate to invalid input data |
367 | 368 |
|
369 |
import? = $(if $(call and,$(public_import),$(call dontImport,.)),,$(import)) |
|
370 |
|
|
368 | 371 |
import: $(importTables:%=%/import) _always ; |
369 | 372 |
|
370 | 373 |
%/import: %/VegBIEN.csv _always |
371 |
$(import) |
|
374 |
$(import?)
|
|
372 | 375 |
# default: |
373 | 376 |
%/import: _always ; |
374 | 377 |
|
Also available in: Unified diff
input.Makefile: Import to VegBIEN: %/import: Don't run the import if $public_import flag is set and the datasource contains a _no_import file. This allows just excluding a datasource from the public DB, without also removing it from automated testing.