Source: kadu
Version: 3.0-1
Severity: wishlist
Tags: patch

Hi,

kadu seems to build fine with multiple build jobs when building.
Thus, my suggestion is to enable the parallel build (reading the number
of jobs from DEB_BUILD_OPTIONS, and adding it to the make invocation)
to speed up the build when requested (see also Policy ยง4.9.1).

Thanks,
-- 
Pino
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,10 @@ CFLAGS:=$(shell dpkg-buildflags --get CF
 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	NJOBS:=-j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
+
 
 configure: configure-stamp
 configure-stamp:
@@ -28,7 +32,7 @@ build: build-arch build-indep
 
 build-arch: build-arch-stamp
 build-arch-stamp: configure-stamp
-	cd $(BUILD_DIR) && $(MAKE) VERBOSE=1
+	cd $(BUILD_DIR) && $(MAKE) $(NJOBS) VERBOSE=1
 	touch $@
 
 build-indep: build-indep-stamp

Reply via email to