[sagemath] 01/01: Revisit the arallel machinery in d/rules
Jerome Benoit
calculus-guest at moszumanska.debian.org
Wed Aug 3 15:03:20 UTC 2016
This is an automated email from the git hooks/post-receive script.
calculus-guest pushed a commit to branch master
in repository sagemath.
commit 60ac7d633d0b04a93d71cfd7ceaeabf44166d036
Author: Jerome Benoit <calculus at rezozer.net>
Date: Wed Aug 3 16:02:44 2016 +0100
Revisit the arallel machinery in d/rules
---
debian/rules | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/debian/rules b/debian/rules
index 225f829..329eba0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,14 @@
VERSION := $(shell dpkg-parsechangelog -S Version| sed 's@\(.\+\)-.\+@\1@')
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ MAKEFLAGS += -j$(NUMJOBS)
+else
+ MAKEFLAGS += -j5
+endif
+
+
%:
dh $@ --parallel
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git
More information about the debian-science-commits
mailing list