]> git.proxmox.com Git - pve-qemu.git/commitdiff
d/rules: set job flag for make based on DEB_BUILD_OPTIONS
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 12 May 2023 11:39:08 +0000 (13:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 21 May 2023 13:51:16 +0000 (15:51 +0200)
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>
debian/rules

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