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:
parent
fbaa6d4a3d
commit
0c742f5f87
5
debian/rules
vendored
5
debian/rules
vendored
@ -4,6 +4,11 @@
|
||||
DPKG_EXPORT_BUILDFLAGS = 1
|
||||
-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-arch: build-stamp
|
||||
build-indep: build-stamp
|
||||
|
Loading…
Reference in New Issue
Block a user