mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
debian/: support parallel in DEB_BUILD_OPTIONS.
This commit is contained in:
committed by
Uoti Urpala
parent
d4455e4222
commit
374e168401
Vendored
+9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user