From 61e4b9735ce0c96dafec992d2b982514fadd64a0 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 9 Dec 2011 02:55:49 +0100 Subject: Some changes to Makefiles to enable parallelism during build --- qtc_packaging/debian_harmattan/rules | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'qtc_packaging') diff --git a/qtc_packaging/debian_harmattan/rules b/qtc_packaging/debian_harmattan/rules index b9a1fd2..07d6f82 100755 --- a/qtc_packaging/debian_harmattan/rules +++ b/qtc_packaging/debian_harmattan/rules @@ -9,6 +9,14 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +# Enable parallelism in $(MAKE) subcall if requested +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS:= $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + PARALLEL:= -j$(NUMJOBS) +else + PARALLEL:= +endif + configure: configure-stamp configure-stamp: dh_testdir @@ -23,7 +31,7 @@ build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. - # $(MAKE) # Uncomment this line for use without Qt Creator + # $(MAKE) $(PARALLEL) # Uncomment this line for use without Qt Creator #docbook-to-man debian/sowatch.sgml > sowatch.1 touch $@ -- cgit v1.2.3