debian/rules: Add support for DEB_BUILD_OPTIONS=parallel=N

This commit is contained in:
Ben Hutchings 2015-09-25 20:36:50 +01:00
parent 4555b9e92e
commit 40299a2dbd
2 changed files with 3 additions and 0 deletions

1
debian/changelog vendored
View File

@ -10,6 +10,7 @@ linux-tools (4.2-1) UNRELEASED; urgency=medium
* linux-perf: Remove shebang lines from perf scripts
* Set compiler flags according to dpkg-buildflags
* hyperv-daemons: Fix fortify format warning
* debian/rules: Add support for DEB_BUILD_OPTIONS=parallel=N
-- Ben Hutchings <ben@decadent.org.uk> Fri, 25 Sep 2015 18:42:20 +0100

2
debian/rules vendored
View File

@ -5,6 +5,8 @@ VERSION_DEBIAN_BINNMU := $(shell echo "$(DEB_VERSION)" | sed -ne 's,.*\+b\(.*\)$
include debian/rules.defs
MAKEFLAGS += $(subst parallel=,-j,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
build: build-arch build-indep
build-arch: debian/control $(STAMPS_DIR)/build-base