From 374e168401bce73cefc2d7de75c373a46f9abc22 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 8 Aug 2009 09:45:36 +0200 Subject: [PATCH] debian/: support parallel in DEB_BUILD_OPTIONS. --- debian/rules | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debian/rules b/debian/rules index 60b19808ac..fc93c22164 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,10 @@ # This is the debhelper compatability version to use. export DH_COMPAT=4 +# do not run the actual rules of this makefile in parallel. sub-makes +# can go in parallel +.NOTPARALLEL: + package := mplayer prefix := $(shell pwd)/debian/$(package) @@ -14,6 +18,11 @@ arch := $(shell dpkg --print-architecture) # https://wiki.ubuntu.com/DistCompilerFlags CLEAN_ENV=env -u CFLAGS -u CPPFLAGS -u LDFLAGS -u FFLAGS -u CXXFLAGS +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + MAKEFLAGS += -j$(NUMJOBS) +endif + configure: configure-stamp configure-stamp: dh_testdir -- 2.11.4.GIT