Revision 8091
Added by Aaron Marcuse-Kubitza over 11 years ago
inputs/input.Makefile | ||
---|---|---|
265 | 265 |
|
266 | 266 |
%/install: _always |
267 | 267 |
$(if $(isRef),$(exportHeader),$(if $(nonXml),$(import_install_))) |
268 |
$(if $(wildcard $*/postprocess.sql),($(inDatasrc); cat $*/postprocess.sql;)\ |
|
269 |
|"time" $(psqlNoSearchPath) --echo-all --set=table='"$*"' $(logInstall*Add)) |
|
268 |
$(selfMake) $*/postprocess.sql/run |
|
270 | 269 |
define import_install_ |
271 | 270 |
(. $(bin)/vegbien_dest; unset schemas; "time" nice -n +5\ |
272 | 271 |
env schema=$(datasrc) table=$* $(bin)/csv2db $(catSrcs) $(logInstall*)) |
Also available in: Unified diff
inputs/input.Makefile: Staging tables installation: %/install: Use new %.sql/run to run postprocess.sql