summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-04-27 18:27:37 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-04-27 22:04:59 +0200
commit35dab95b76596eb9f1684146d731a2e42762a197 (patch)
tree20fed7bfffb2d4d46514561c5426aa4d79b73094 /debian/rules
parentquagga: Fixup startup to allow consistency between sysV and systemd (diff)
downloadfrr-35dab95b76596eb9f1684146d731a2e42762a197.tar.xz
frr-35dab95b76596eb9f1684146d731a2e42762a197.zip
debian: Attempt to fix parrelization
This commit fixes some quagga build issues such that you can now use -j in your sbuild line. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Signed-off-by: Jon Toppins <toppins@cumulusnetworks.com>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index a2c7a8131..f5e79e337 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,14 @@ else
$(warning "DEBIAN: SNMP disabled, see README.Debian")
endif
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ DEBIAN_JOBS := $(subst parallel=,,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
+
+ifdef DEBIAN_JOBS
+MAKEFLAGS += -j$(DEBIAN_JOBS)
+endif
+
%:
dh $@ --with=systemd --parallel --with autoreconf --dbg-package=quagga-dbg --list-missing
if [ -e config.status ]; then \