From a267fb757f8e2ea5fd4e8a672a2e89f304b1b090 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 1 Aug 2017 21:10:28 +0100 Subject: Temp files for schema should be in bin --- p2pvr/datasources/database.mk | 11 ++++++----- 1 file 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 $@ -- cgit v1.2.3