Project

General

Profile

« Previous | Next » 

Revision 4401

input.Makefile: Verification of import: $(verify): Factored psql command with output format settings into separate $(psqlExport) var

View differences:

inputs/input.Makefile
322 322
# don't run if verify/%.out's default do-nothing action was used
323 323
# can't use $(wildcard) because it won't recheck file after verify/%.out is run
324 324

  
325
verify = $(if $(reverify),"time" $(psqlAsBien) --set=datasource="'$(datasrc)'"\
326
--no-align --field-separator=$$'\t' --pset=footer=off --pset=null=NULL <$< >$@)
325
psqlExport := "time" $(psqlAsBien) --no-align --field-separator=$$'\t'\
326
--pset=footer=off --pset=null=NULL
327
verify = $(if $(reverify),$(psqlExport) --set=datasource="'$(datasrc)'" <$< >$@)
327 328

  
328 329
verify/%.out: $(mappings)/verify.%.sql _always
329 330
	$(verify)

Also available in: Unified diff