Fix NJOBS when DEB_BUILD_OPTIONS is not present

NJOBS is supposed to have the -j argument (as in the DEB_BUILD_OPTIONS
case)
This commit is contained in:
Faidon Liambotis 2022-10-07 15:30:35 +03:00 committed by Sylvestre Ledru
parent 25af6d2de8
commit 6ba6091ca0

2
debian/rules vendored
View File

@ -31,7 +31,7 @@ DEBIAN_REVISION := $(shell dpkg-parsechangelog | sed -rne "s,^Version: 1:([0-9.
ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
else
NJOBS := $(shell nproc)
NJOBS := -j $(shell nproc)
endif
VENDOR=$(shell lsb_release -is)