[clblas] 49/54: d/rules: condtionally build examples on nocheck.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jan 14 20:07:37 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository clblas.

commit a036ea2558f2eee8a63129c6b3ae3f2bcbbbbe95
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu Jan 14 16:42:00 2016 +0000

    d/rules: condtionally build examples on nocheck.
---
 debian/rules | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/debian/rules b/debian/rules
index 5be1118..cf81f63 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,6 +35,13 @@ export CMAKE_BUILD_OPTIONS = \
 	-DBUILD_SHARED_LIBS=ON \
 	-DSUFFIX_LIB="/$(DEB_TARGET_MULTIARCH)"
 
+# Disable build of examples if no check requested.
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+CMAKE_BUILD_OPTIONS += -DBUILD_SAMPLE=ON
+else
+CMAKE_BUILD_OPTIONS += -DBUILD_SAMPLE=OFF
+endif
+
 %:
 	dh $@ --parallel \
 		--sourcedirectory=src \
@@ -46,13 +53,8 @@ override_dh_auto_clean-indep:
 	rm -f ./doc/doxygen_sqlite3.db
 	find . -name "*.pyc" -delete
 
-override_dh_auto_configure-arch:
-	dh_auto_configure -- ${CMAKE_BUILD_OPTIONS} \
-		-DBUILD_SAMPLE=OFF
-
-override_dh_auto_configure-indep:
-	dh_auto_configure -- ${CMAKE_BUILD_OPTIONS} \
-		-DBUILD_SAMPLE=ON
+override_dh_auto_configure:
+	dh_auto_configure -- $(CMAKE_BUILD_OPTIONS)
 
 override_dh_auto_build-indep:
 	cd doc && doxygen clBLAS.doxy

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clblas.git



More information about the debian-science-commits mailing list