From: Cédric Villemain Date: Thu, 15 Sep 2016 18:59:30 +0000 (+0200) Subject: More simple debian/rules X-Git-Tag: 1.2 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=0182c421cc545d0eeb7858319b59dbbc6bf417d6;p=pgfincore.git More simple debian/rules and Makefile --- diff --git a/Makefile b/Makefile index 007f404..5cf881d 100644 --- 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 diff --git a/debian/rules b/debian/rules index e637be5..29226c4 100755 --- a/debian/rules +++ b/debian/rules @@ -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