debian: add support for dpkg-buildpackage -j parallelism

See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=209008#202
This commit is contained in:
Michael Stapelberg 2012-01-23 22:20:10 +00:00
parent fbaa6d4a3d
commit 0c742f5f87

5
debian/rules vendored
View File

@ -4,6 +4,11 @@
DPKG_EXPORT_BUILDFLAGS = 1 DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk -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: build-arch build-indep
build-arch: build-stamp build-arch: build-stamp
build-indep: build-stamp build-indep: build-stamp