From 947c13511a50ebc2c5dd50e761fc4433e8479b1e Mon Sep 17 00:00:00 2001 From: David Sansome Date: Thu, 1 Dec 2011 10:58:49 +0000 Subject: [PATCH] Support DEB_BUILD_OPTIONS=parallel=n to build debs in parallel --- debian/rules.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/rules.in b/debian/rules.in index cf1b94f1d..fe242e618 100755 --- a/debian/rules.in +++ b/debian/rules.in @@ -1,6 +1,12 @@ #!/usr/bin/make -f # -*- makefile -*- +MY_MAKEFLAGS= +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + MY_MAKEFLAGS=-j$(NUMJOBS) +endif + configure: configure-stamp configure-stamp: dh_testdir @@ -11,9 +17,9 @@ configure-stamp: touch configure-stamp build: build-stamp -build-stamp: configure-stamp +build-stamp: configure-stamp dh_testdir - cd bin && make + cd bin && make $(MY_MAKEFLAGS) touch $@ clean: