Source: texworks
Version: 0.5~svn1363-3
Severity: wishlist
Tags: patch

Hi,

texworks 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
@@ -15,6 +15,10 @@ include /usr/share/dpkg/buildflags.mk
 CFLAGS+=$(CPPFLAGS)
 CXXFLAGS+=$(CPPFLAGS)
 
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+NJOBS := -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
+
 
 .PHONY: build-arch build-indep build clean binary-indep binary-arch binary install configure
 
@@ -38,7 +42,7 @@ build-arch: build-stamp
 # Build architecture-dependent files
 build-stamp: configure-stamp  
 	dh_testdir
-	cd build && $(MAKE) VERBOSE=1
+	cd build && $(MAKE) $(NJOBS) VERBOSE=1
 	touch $@
 
 clean: 

Reply via email to