diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2013-05-16 04:06:43 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2013-05-16 04:06:43 +0200 |
commit | 7fdbb15da635c9b0a58054a35d67b80a5e8b2aff (patch) | |
tree | 06a3314dff94e5fd7c8bc07bce20e3a7c8f6a733 /debian/rules | |
parent | df3900276fbaef498dcaf15f2dea78d3ad297d1c (diff) | |
download | screen-7fdbb15da635c9b0a58054a35d67b80a5e8b2aff.tar.gz |
Bump dh compat to >= 9, use dh_auto_{configure,build}
* Update versioned debhelper build-dependency
* Drop DPKG_EXPORT_BUILDFLAGS and /usr/share/dpkg/buildflags.mk
* Drop manual DEB_BUILD_OPTIONS parsing
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/debian/rules b/debian/rules index ff2d5f6..3b774d8 100755 --- a/debian/rules +++ b/debian/rules @@ -12,15 +12,6 @@ ROOT := $(CURDIR)/debian/$(package) # statically define this... sucko TTYGROUP := 5 -DPKG_EXPORT_BUILDFLAGS = 1 -include /usr/share/dpkg/buildflags.mk - -ifeq ($(findstring noopt,$(DEB_BUILD_OPTIONS)),noopt) -CC_OPTFLAGS := -O0 -g3 -else -CC_OPTFLAGS := -O2 -g -endif - clean: dh_testdir dh_testroot @@ -33,10 +24,7 @@ configure: configure-stamp configure-stamp: dh_testdir dh_autoreconf - ./configure --prefix=/usr \ - $(shell dpkg-buildflags --export=configure) \ - --infodir='$$(prefix)/share/info' \ - --mandir='$$(prefix)/share/man' \ + dh_auto_configure -- \ --with-socket-dir=/var/run/screen \ --enable-pam \ --with-pty-mode=0620 \ @@ -56,8 +44,8 @@ build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir - $(MAKE) CFLAGS+='$(CC_OPTFLAGS) -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers' - $(MAKE) CFLAGS+='$(CC_OPTFLAGS) -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers' -C doc + dh_auto_build -- CFLAGS+='-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers' + dh_auto_build -Ddoc -- CFLAGS+='-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers' touch $@ install: install-stamp |