Fix 'make deb' to work with all Postgresql
authorCΓ©dric Villemain <cedric@2ndquadrant.fr>
Mon, 12 Aug 2013 14:11:37 +0000 (16:11 +0200)
committerCΓ©dric Villemain <cedric@2ndquadrant.fr>
Mon, 12 Aug 2013 14:13:34 +0000 (16:13 +0200)
Because recents PostgreSQL contain a fix for make isntalkl which is not backported yet.

.gitignore
debian/rules

index fc3e2f21bc2a6ab76f329f170952df490b42f2f8..071054a96df1e65bbc9e31f0700faef325ec826c 100644 (file)
@@ -1,7 +1,7 @@
 .pc
 debian/control
 debian/files
-debian/pgfincore-*
+build-pgfincore-*
 debian/postgresql-*
 results/
 *.so
index 8730c22443fabbd886f5e37f836c48876b19a0aa..35d793f89e40d97d76821b0abf68f32e879dc1c7 100755 (executable)
@@ -19,8 +19,8 @@ export DH_OPTIONS
 EXTNAME = $(shell dpkg-parsechangelog | awk -F '[:-]' '/^Source:/ { print substr($$2, 2) }')
 PKGVERS = $(shell dpkg-parsechangelog | awk -F '[:-]' '/^Version:/ { print substr($$2, 2) }')
 
-export SRCDIR = $(CURDIR)
-TARGET = $(CURDIR)/debian/$(EXTNAME)-%v
+SRCDIR = $(CURDIR)
+TARGET = build-$(EXTNAME)-%v
 
 include /usr/share/postgresql-common/pgxs_debian_control.mk
 
@@ -30,7 +30,7 @@ override_dh_auto_clean: debian/control
 
 override_dh_auto_build:
        # build all supported version
-       +pg_buildext build $(SRCDIR) $(TARGET) "$(CFLAGS)"
+       +pg_buildext build $(SRCDIR) $(TARGET)
 
 override_dh_auto_install: 
        # then install each of them