From: Michael Stapelberg Date: Mon, 23 Jan 2012 22:20:10 +0000 (+0000) Subject: debian: add support for dpkg-buildpackage -j parallelism X-Git-Tag: 4.2~116 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0c742f5f875e1b65d044319cb1f39e1a6f53a995;p=i3%2Fi3 debian: add support for dpkg-buildpackage -j parallelism See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=209008#202 --- 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