[arrayfire] 02/12: d/rules: set build directory explicitly.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Nov 22 23:46:02 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit eb5474ac712bbeb474708ccb42b86dd909745066
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Sat Nov 21 17:55:00 2015 +0000
d/rules: set build directory explicitly.
---
debian/rules | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/debian/rules b/debian/rules
index a05ff4b..fb2efa8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,11 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+# Environment information.
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+BUILDDIR = $(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)
+
# CMake options common to -arch and -indep builds.
CMAKE_BUILD_OPTIONS = \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
@@ -35,7 +40,7 @@ endif
CTEST_EXCLUDE_REGEX = large|dense
%:
- dh $@ --parallel
+ dh $@ --parallel --builddirectory=$(BUILDDIR)
override_dh_auto_clean:
dh_auto_clean
@@ -50,9 +55,9 @@ override_dh_auto_configure-indep:
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- cd obj-* && \
- CTEST_OUTPUT_ON_FAILURE=1 ctest --force-new-ctest-process -R "cpu" \
- -E "$(CTEST_EXCLUDE_REGEX)"
+ cd $(BUILDDIR) && \
+ CTEST_OUTPUT_ON_FAILURE=1 \
+ ctest --force-new-ctest-process -R "cpu" -E "$(CTEST_EXCLUDE_REGEX)"
endif
override_dh_install-indep:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list