Project

General

Profile

« Previous | Next » 

Revision 10994

bugfix: inputs/input.Makefile: `%/install: %/create.sql`: don't include %/header.csv as a target, so that it won't get deleted if the install fails (especially on a step that happens after the header is exported)

View differences:

inputs/input.Makefile
297 297
	$(if $(wildcard $*/run),$*/run map_table)
298 298

  
299 299
# For staging tables which are derived by joining together other staging tables.
300
%/install %/header.csv: %/create.sql _always
300
%/install: %/create.sql _always
301 301
	($(inDatasrc); echo 'CREATE TABLE "$*" AS'; cat $<; echo ';')|"time" \
302 302
$(psqlNoSearchPath) --echo-all --set=schema='"$(datasrc)"' --set=table='"$*"' \
303 303
$(logInstall*)
......
305 305
	$(exportHeader)
306 306
	$(cleanup)
307 307
	$(selfMake) $*/map_table
308
ifneq ($(noclobber),)
309
.PRECIOUS: %/header.csv
310
endif
311 308

  
312 309
%/install: _always
313 310
	$(if $(isCsv),$(import_install_))

Also available in: Unified diff