debian/: support parallel in DEB_BUILD_OPTIONS.

This commit is contained in:
Anton Khirnov
2009-08-23 11:08:02 +03:00
committed by Uoti Urpala
parent d4455e4222
commit 374e168401
+9
View File
@@ -5,6 +5,10 @@
# This is the debhelper compatability version to use.
export DH_COMPAT=4
# do not run the actual rules of this makefile in parallel. sub-makes
# can go in parallel
.NOTPARALLEL:
package := mplayer
prefix := $(shell pwd)/debian/$(package)
@@ -14,6 +18,11 @@ arch := $(shell dpkg --print-architecture)
# https://wiki.ubuntu.com/DistCompilerFlags
CLEAN_ENV=env -u CFLAGS -u CPPFLAGS -u LDFLAGS -u FFLAGS -u CXXFLAGS
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif
configure: configure-stamp
configure-stamp:
dh_testdir