diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 1 | ||||
-rwxr-xr-x | debian/rules | 12 |
2 files changed, 12 insertions, 1 deletions
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 <sthibault@debian.org> 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 \ |