Project

General

Profile

« Previous | Next » 

Revision 5794

input.Makefile: Staging tables installation: Moved custom cleanup.sql cleanup operations to main $(cleanup) function, so custom cleanup operations would run whenever any target (such as %/install) invokes $(cleanup), not just manually through %/cleanup

View differences:

input.Makefile
218 218
(prefix=; . $(bin)/vegbien_dest; env schema=$(datasrc) table=$* $(bin)/csv2db) \
219 219
$(logInstall*Add)
220 220
$(if $(wildcard $*/cleanup.sql),($(inDatasrc); cat $*/cleanup.sql;)|"time" \
221
$(psqlAsBien) --echo-all --set=table='"$*"' $(logInstall*Add),$(cleanup))
221
$(psqlAsBien) --echo-all --set=table='"$*"' $(logInstall*Add))
222 222
endef
223 223

  
224 224
define exportHeader

Also available in: Unified diff