From 4cf42d6dc39e7473f45445b72a7ecfe6f1524176 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 27 Aug 2012 07:59:07 +0000 Subject: Add language-parallel build support. --- debian/changelog | 1 + debian/rules | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 2d7c8e735..1e09549b6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ installation-guide (20120827) UNRELEASED; urgency=low for the patch. Closes: #684629. * official-cdrom: Add link to CD FaQ. Thanks Holger Wansing and Richard Owlett for the heads-up. Closes: #280348, #309568. + * Add language-parallel build support. -- Samuel Thibault Sun, 26 Aug 2012 16:47:22 +0200 diff --git a/debian/rules b/debian/rules index e3ecb7847..2809b9d0e 100755 --- a/debian/rules +++ b/debian/rules @@ -9,6 +9,15 @@ ifeq (${SUITE},unstable) SUITE=wheezy endif +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +DEB_PARALLEL_JOBS ?= $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +endif + +ifneq (,$(DEB_PARALLEL_JOBS)) +PARALLEL=-j$(DEB_PARALLEL_JOBS) +endif + + MANTMP=$(shell pwd)/debian/manual clean: @@ -18,7 +27,7 @@ clean: rm -rf $(MANTMP) dh_clean doc-base-stamp rm -rf debian/installation-guide-*.doc-base.* - rm -rf build/build.out build/build.tmp build/build.po + rm -rf build/build.out* build/build.tmp* build/build.po doc-base: doc-base-stamp doc-base-stamp: @@ -48,6 +57,7 @@ build-stamp: -rm -rf $(MANTMP) set -e && cd build && \ for arch in $(ARCHS) ; do \ + MAKEFLAGS="$(PARALLEL)" \ official_build=1 manual_release=$(SUITE) \ architectures="$$arch" languages="$(LANGS)" \ destination=$(MANTMP)/$$arch noarchdir=1 \ -- cgit v1.2.3