More simple debian/rules 1.2 debian/1.2-1
authorCΓ©dric Villemain <cedric@2ndquadrant.fr>
Thu, 15 Sep 2016 18:59:30 +0000 (20:59 +0200)
committerCΓ©dric Villemain <cedric@2ndquadrant.fr>
Thu, 15 Sep 2016 20:02:47 +0000 (22:02 +0200)
and Makefile

Makefile
debian/rules

index 007f4049afc16c486bf52b2d035c22c3bfb1617d..5cf881d500cfd5fb205e7c544ea3ef1841f38433 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,8 @@ dist:
 
 deb:
        make clean
+       pg_buildext updatecontrol
        make -f debian/rules debian/control
        dh clean
-       make -f debian/rules orig
-       debuild -us -uc -sa
+       make dist
+       dpkg-buildpackage -us -uc
index e637be57c41ae786695653d8d63aaf0de478c856..29226c443451040ff51cb82ecc5348cfb75c1042 100755 (executable)
@@ -1,32 +1,21 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-
-EXTNAME = $(shell dpkg-parsechangelog | awk -F '[:-]' '/^Source:/ { print substr($$2, 2) }')
-PKGVERS = $(shell dpkg-parsechangelog | awk -F '[:-]' '/^Version:/ { print substr($$2, 2) }')
-
-SRCDIR = $(CURDIR)
-TARGET = build-$(EXTNAME)-%v
 
 include /usr/share/postgresql-common/pgxs_debian_control.mk
-clean: debian/control
-.PHONY: debian/control
-
-override_dh_auto_clean:
-       +pg_buildext clean $(SRCDIR) $(TARGET)
-       $(MAKE) clean
 
 override_dh_auto_build:
-       # build all supported version
-       +pg_buildext build $(SRCDIR) $(TARGET)
+       +pg_buildext build build-%v
 
-override_dh_auto_install: 
-       # then install each of them
-       +pg_buildext install $(SRCDIR) $(TARGET) postgresql-%v-$(EXTNAME)
+override_dh_auto_test:
+       # nothing to do here, see debian/tests/* instead
 
-orig: clean
-       git archive --prefix=$(EXTNAME)-$(PKGVERS)/ -o ../$(EXTNAME)_$(PKGVERS).orig.tar.gz HEAD
+override_dh_auto_install:
+       +pg_buildext install build-%v postgresql-%v-pgfincore
+
+override_dh_installdocs:
+       dh_installdocs --all README.*
+
+override_dh_auto_clean:
+       +pg_buildext clean build-%v
 
 %:
        dh $@
-
-.PHONY: debian/control