Project

General

Profile

« Previous | Next » 

Revision 8382

inputs/input.Makefile: Staging tables installation: %/install: $(logInstall): Only use log file if log dir exists, to support non-data dirs

View differences:

inputs/input.Makefile
226 226

  
227 227
installLog := logs/install.log.sql
228 228

  
229
logInstall = $(if $(quiet),$(2)$(1)$(installLog) 2>&1,2>&1|tee $(3)\
230
$(1)$(installLog))
229
log_dir = $(1)logs
230
has_log_dir = $(wildcard $(log_dir))
231
logInstall = $(if $(has_log_dir),$(if $(quiet),$(2)$(1)$(installLog)\
232
2>&1,2>&1|tee $(3) $(1)$(installLog)))
231 233
logInstallRoot = $(call logInstall,,>)
232 234
logInstall* = $(call logInstall,$*/,>)
233 235
logInstall*Add = $(call logInstall,$*/,>>,-a)# append to log

Also available in: Unified diff