1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-24 08:57:00 +00:00

debian/: support parallel in DEB_BUILD_OPTIONS.

This commit is contained in:
Anton Khirnov 2009-08-08 09:45:36 +02:00 committed by Uoti Urpala
parent d4455e4222
commit 374e168401

9
debian/rules vendored
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