From 0c742f5f875e1b65d044319cb1f39e1a6f53a995 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 23 Jan 2012 22:20:10 +0000 Subject: [PATCH] debian: add support for dpkg-buildpackage -j parallelism See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=209008#202 --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index a6bfc2c0..38b60e13 100755 --- a/debian/rules +++ b/debian/rules @@ -4,6 +4,11 @@ DPKG_EXPORT_BUILDFLAGS = 1 -include /usr/share/dpkg/buildflags.mk +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + MAKEFLAGS += -j$(NUMJOBS) +endif + build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp