Project

General

Profile

« Previous | Next » 

Revision 4526

input.Makefile: Staging tables installation: `%/install: %/create.sql`: Provide the table name as a var (:table) to the query

View differences:

input.Makefile
226 226
	($(inDatasrc); echo 'CREATE TABLE "$*" AS'; cat $<; echo ';'; \
227 227
echo 'ALTER TABLE "$*" ADD COLUMN row_num serial NOT NULL PRIMARY KEY;'; \
228 228
echo 'VACUUM ANALYZE "$*";')|"time" $(psqlAsBien) --echo-all \
229
$(call logInstall,$*/)
229
--set=table='"$*"' $(call logInstall,$*/)
230 230
	$(exportHeader)
231 231

  
232 232
# The joined tables must be suffixed with ".src" to prevent the creation of a

Also available in: Unified diff