[asl] 05/10: d/rules: build examples and testsuite conditionally on nocheck.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri May 6 06:38:41 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository asl.
commit ac6a2d3f58ccc037b1946bad5bdd2af14de775c9
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Thu May 5 20:09:49 2016 +0100
d/rules: build examples and testsuite conditionally on nocheck.
---
debian/rules | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 540ee54..8cc7ff7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,9 +10,14 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
BUILD_OPTIONS = \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_TARGET_MULTIARCH)" \
- -DWITH_EXAMPLES=OFF \
-DWITH_MATIO=ON
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+BUILD_OPTIONS += -DWITH_EXAMPLES=ON -DWITH_TESTS=ON
+else
+BUILD_OPTIONS += -DWITH_EXAMPLES=OFF -DWITH_TESTS=OFF
+endif
+
%:
dh $@ --parallel
@@ -22,6 +27,9 @@ override_dh_auto_configure-arch:
override_dh_auto_configure-indep:
dh_auto_configure -- $(BUILD_OPTIONS) -DWITH_API_DOC=ON
+override_dh_auto_test:
+ # No-op.
+
override_dh_installdocs-indep:
dh_installdocs --indep
dh_doxygen --indep
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/asl.git
More information about the debian-science-commits
mailing list