From 0ba6b5d4995171336281af73fd133e676bc57919 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 10 Dec 2011 17:24:15 +0100 Subject: Fixing Fremantle debian/rules --- qtc_packaging/debian_fremantle/rules | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'qtc_packaging') diff --git a/qtc_packaging/debian_fremantle/rules b/qtc_packaging/debian_fremantle/rules index f88f85e..68eca34 100755 --- a/qtc_packaging/debian_fremantle/rules +++ b/qtc_packaging/debian_fremantle/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 @@ -19,29 +27,29 @@ configure-stamp: build: build-stamp -build-stamp: configure-stamp +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 $@ -clean: +clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. - $(MAKE) clean + -$(MAKE) clean - dh_clean + dh_clean install: build dh_testdir dh_testroot - dh_clean -k + dh_clean -k dh_installdirs # Add here commands to install the package into debian/sowatch. @@ -56,7 +64,7 @@ binary-indep: build install binary-arch: build install dh_testdir dh_testroot - dh_installchangelogs + dh_installchangelogs dh_installdocs dh_installexamples # dh_install -- cgit v1.2.3