diff options
-rw-r--r-- | p2pvr/datasources/database.mk | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/p2pvr/datasources/database.mk b/p2pvr/datasources/database.mk index 847e09e..7c012de 100644 --- a/p2pvr/datasources/database.mk +++ b/p2pvr/datasources/database.mk @@ -1,11 +1,12 @@ -.PHONY : database current.sql schema.sql +.PHONY : database bin/current.sql schema.sql -database: patch.sql +database: bin/patch.sql psql -U p2pvr p2pvr < $< -current.sql : +bin/current.sql : + mkdir -p bin pg_dump -U p2pvr p2pvr -O -s -E utf8 > $@ -patch.sql : current.sql schema.sql - apgdiff --add-transaction current.sql schema.sql | tee $@ +bin/patch.sql : bin/current.sql schema.sql + apgdiff --add-transaction bin/current.sql schema.sql | tee $@ |