[gmp-ecm] 27/77: Support parallel build.
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 8f6571efeb9fd0904bc39ce649292146cedb260f
Author: Laurent Fousse <laurent at komite.net>
Date: Fri Aug 13 17:11:57 2010 +0200
Support parallel build.
---
debian/rules | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index 898c188..688c577 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,13 @@ ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
with_check := disabled through DEB_BUILD_OPTIONS
endif
+NJOBS =
+# Support parallel=<n> in DEB_BUILD_OPTIONS
+ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
+ COMMA = ,
+ NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(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)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
@@ -40,10 +47,10 @@ build-stamp: config.status
dh_testdir
# Add here commands to compile the package.
- $(MAKE)
+ $(MAKE) $(NJOBS)
ifeq ($(with_check),yes)
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
- $(MAKE) check
+ $(MAKE) $(NJOBS) check
endif
endif
touch build-stamp
--
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