Revision 5942
Added by Aaron Marcuse-Kubitza about 12 years ago
input.Makefile | ||
---|---|---|
220 | 220 |
# `--compatible=postgresql --add-locks=false --set-charset --no-create-info` |
221 | 221 |
# Must come before `%.sql: _MySQL/%.sql` to override it |
222 | 222 |
%.data.sql: _MySQL/%.data.sql |
223 |
$(bin)/my2pg.data <$< >$@
|
|
223 |
$(if $(wildcard $@),,$(bin)/my2pg.data <$< >$@)
|
|
224 | 224 |
|
225 | 225 |
# The export must be created with: |
226 | 226 |
# `--compatible=postgresql --add-locks=false --set-charset` |
227 | 227 |
# Add `--no-data` to create a schema-only export. |
228 | 228 |
%.sql: _MySQL/%.sql |
229 |
$(bin)/my2pg <$< >$@
|
|
229 |
$(if $(wildcard $@),,$(bin)/my2pg <$< >$@)
|
|
230 | 230 |
|
231 | 231 |
cleanup = $(if $(wildcard $*/cleanup.sql),($(inDatasrc); cat $*/cleanup.sql)\ |
232 | 232 |
|"time" $(psqlAsBien) --echo-all --set=table='"$*"' $(logInstall*Add),\ |
Also available in: Unified diff
input.Makefile: Staging tables installation: `%.sql: _MySQL/%.sql`, etc.: Only run if target does not exist, to avoid regenerating the target when a .make script which generates the target's prerequisite is checked out from svn (causing its mod time to be newer than the target)