Project

General

Profile

« Previous | Next » 

Revision 9833

inputs/input.Makefile: Staging tables installation: $(logInstall): don't output to the install log if $noclobber flag is set, to prevent overwriting the log when re-running the install target idempotently

View differences:

inputs/input.Makefile
9 9
full_import ?=
10 10
import_source ?= 1
11 11
log ?= $(if $(test),,1)
12
noclobber ?=
12 13
profile ?=
13 14
quiet ?=
14 15
reverify ?= 1
......
230 231
installLog := logs/install.log.sql
231 232

  
232 233
log_dir = $(1)logs
233
has_log_dir = $(wildcard $(log_dir))
234
has_log_dir = $(call and,$(wildcard $(log_dir)),$(call not,$(noclobber)))
234 235
logInstall = $(if $(has_log_dir),$(if $(quiet),$(2)$(1)$(installLog)\
235 236
2>&1,2>&1|tee $(3) $(1)$(installLog)))
236 237
logInstallRoot = $(call logInstall,,>)

Also available in: Unified diff