Revision 4427
Added by Aaron Marcuse-Kubitza about 12 years ago
inputs/input.Makefile | ||
---|---|---|
169 | 169 |
##### Staging tables installation |
170 | 170 |
|
171 | 171 |
dbExports := $(wildcard *.schema.sql)# schemas first |
172 |
dbExports += $(filter-out $(dbExports) %.my.sql,$(wildcard *.sql))# all others
|
|
172 |
dbExports += $(filter-out $(dbExports),$(wildcard *.sql))# all others |
|
173 | 173 |
allInstalls := $(if $(dbExports),sql) $(allTables) |
174 | 174 |
|
175 | 175 |
install: _always schema $(allInstalls:%=%/install) ; |
... | ... | |
192 | 192 |
|
193 | 193 |
# The export must be created with: |
194 | 194 |
# `--compatible=postgresql --add-locks=false --set-charset` |
195 |
%.schema.sql: %.schema.my.sql
|
|
195 |
%.schema.sql: _MySQL/%.schema.sql
|
|
196 | 196 |
$(bin)/my2pg <$< >$@ |
197 | 197 |
|
198 | 198 |
# For staging tables which are derived by joining together other staging tables. |
Also available in: Unified diff
input.Makefile: Staging tables installation: Place MySQL exports in separate _MySQL/ subdir so they don't clutter up the main dir, which will contain PostgreSQL translations