d/rules: set job flag for make based on DEB_BUILD_OPTIONS

Copied from Debian's QEMU package's d/rules. Otherwise, ninja will end
up using only a single job (in Debian Bookworm/Proxmox VE 8).

Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Fiona Ebner 2023-05-12 13:39:08 +02:00 committed by Thomas Lamprecht
parent 19a11f24a5
commit 023b916380

3
debian/rules vendored
View File

@ -40,6 +40,9 @@ endif
export CFLAGS export CFLAGS
# DEB_BUILD_OPTIONS=parallel=N
MAKEFLAGS += $(subst parallel=,-j,$(filter parallel=%,${DEB_BUILD_OPTIONS}))
${BUILDDIR}/config.status: configure ${BUILDDIR}/config.status: configure
dh_testdir dh_testdir
# Add here commands to configure the package. # Add here commands to configure the package.