[gmp-ecm] 23/77: Make build checking optionnal (Policy §4.9.1).
Jerome Benoit
calculus-guest at moszumanska.debian.org
Sat Jun 6 12:33:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
calculus-guest pushed a commit to branch master
in repository gmp-ecm.
commit c2734c1f190d9384b95d4116cbf5123e9f7901b1
Author: Laurent Fousse <laurent at komite.net>
Date: Wed Jul 28 10:58:06 2010 +0200
Make build checking optionnal (Policy §4.9.1).
---
debian/rules | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index 89ef1ab..898c188 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,10 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+with_check := yes
+ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ with_check := disabled through DEB_BUILD_OPTIONS
+endif
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
@@ -37,8 +41,11 @@ build-stamp: config.status
# Add here commands to compile the package.
$(MAKE)
+ifeq ($(with_check),yes)
+ ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
$(MAKE) check
-
+ endif
+endif
touch build-stamp
clean:
@@ -61,7 +68,7 @@ endif
install: build
dh_testdir
dh_testroot
- dh_clean -k
+ dh_clean
dh_installdirs
# Add here commands to install the package into debian/gmp-ecm.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gmp-ecm.git
More information about the debian-science-commits
mailing list