Project

General

Profile

« Previous | Next » 

Revision 8155

inputs/input.Makefile: %.sql/run: Change to the directory the file is located in, so that includes (\i) are relative to the file, rather than relative to whatever happens to be the current directory

View differences:

inputs/input.Makefile
262 262
.PRECIOUS: %/header.csv
263 263

  
264 264
%.sql/run: _always
265
	$(if $(wildcard $(@D)),($(inDatasrc); cat $(@D))|"time" $(psqlNoSearchPath)\
266
--echo-all --set=table='"$(*D)"' --set=table_str=\''"$(*D)"'\')
265
	$(if $(wildcard $(@D)),($(inDatasrc); cat $(@D))|(cd '$(*D)';\
266
"time" $(psqlNoSearchPath) --set=table='"$(*D)"' --set=table_str=\''"$(*D)"'\'))
267 267

  
268 268
%/install: _always
269 269
	$(if $(nonXml),$(import_install_))

Also available in: Unified diff