diff options
| -rwxr-xr-x | qtc_packaging/debian_fremantle/rules | 22 | 
1 files changed, 15 insertions, 7 deletions
| 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 | 
