[Pkg-cyrus-sasl2-commits] [cyrus-sasl2] 22/44: Build in separate build directory (again)
Ondřej Surý
ondrej at debian.org
Sat Dec 31 13:07:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
ondrej pushed a commit to branch master
in repository cyrus-sasl2.
commit e8fd23d0380eeff21254e8073e173284c1aa9c4a
Author: Ondřej Surý <ondrej at sury.org>
Date: Mon Oct 24 18:11:49 2016 +0200
Build in separate build directory (again)
---
debian/rules | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/debian/rules b/debian/rules
index 96b6113..3849ab9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -93,13 +93,15 @@ CONFIGURE_COMMON_OPTIONS= \
AUTOFILES=acinclude.m4 aclocal.m4 config/config.sub config/config.guess \
config/ltmain.sh config/libtool.m4
+TMPBUILD=$(CURDIR)/build
+
### The Makefile targets begin. ###
%:
dh $@ --with=quilt --with=autotools_dev --with=autoreconf $(DH_PACKAGE_EXCLUDES)
override_dh_auto_clean:
- dh_auto_clean
+ dh_auto_clean -B$(TMPBUILD)
rm -f $(CURDIR)/sample/sample-client \
$(CURDIR)/sample/sample-server
@@ -116,10 +118,12 @@ override_dh_auto_clean:
# Remove generated man pages
-rm -f sasl-sample-client.8 sasl-sample-server.8 gen-auth.1
+ -rm -r $(TMPBUILD)
+
override_dh_auto_configure:
LDFLAGS="$(LDFLAGS) -L/usr/lib/mit-krb5 -Wl,-z,defs" \
CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS) -I/usr/include/mit-krb5" \
- dh_auto_configure -- $(CONFIGURE_COMMON_OPTIONS) --with-gss_impl=mit
+ dh_auto_configure -B$(TMPBUILD) -- $(CONFIGURE_COMMON_OPTIONS) --with-gss_impl=mit
# Record the build-time settings for later reference
echo 'To build this package, configure was called as follows:' \
@@ -130,10 +134,10 @@ override_dh_auto_configure:
>> debian/README.configure-options
override_dh_auto_build:
- dh_auto_build -- sasldir=/usr/lib/$(DEB_HOST_MULTIARCH)/sasl2
+ dh_auto_build -B$(TMPBUILD) -- sasldir=/usr/lib/$(DEB_HOST_MULTIARCH)/sasl2
# Build sample-{client,server}
- $(MAKE) -f $(CURDIR)/debian/sample/Makefile -C $(CURDIR)/sample T=$(CURDIR)
+ $(MAKE) -f $(CURDIR)/debian/sample/Makefile -C $(CURDIR)/sample T=$(TMPBUILD)
# Build the sasl-sample-client and sasl-sample-server man pages.
/usr/bin/docbook-to-man debian/sasl-sample-client.sgml \
@@ -144,7 +148,7 @@ override_dh_auto_build:
/usr/bin/pod2man --stderr debian/gen-auth/gen-auth >gen-auth.1
override_dh_auto_install:
- dh_auto_install -- DESTDIR=debian/tmp sasldir=/usr/lib/$(DEB_HOST_MULTIARCH)/sasl2
+ dh_auto_install -B$(TMPBUILD) -- DESTDIR=debian/tmp sasldir=/usr/lib/$(DEB_HOST_MULTIARCH)/sasl2
# Note the version of Berkeley DB used to build this package
mkdir -p debian/tmp/usr/lib/sasl2
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cyrus-sasl2/cyrus-sasl2.git
More information about the Pkg-cyrus-sasl2-commits
mailing list