diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-12-09 02:55:49 +0100 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-12-09 02:57:01 +0100 |
commit | 61e4b9735ce0c96dafec992d2b982514fadd64a0 (patch) | |
tree | a0c9cffa5dfcb8c5ad75c7e381b8160f7576976b /qtc_packaging | |
parent | b92c904a14f86a8e2e22eaa7f7855edc96e8e874 (diff) | |
download | sowatch-61e4b9735ce0c96dafec992d2b982514fadd64a0.tar.gz sowatch-61e4b9735ce0c96dafec992d2b982514fadd64a0.zip |
Some changes to Makefiles to enable parallelism during build
Diffstat (limited to 'qtc_packaging')
-rwxr-xr-x | qtc_packaging/debian_harmattan/rules | 10 |
1 files changed, 9 insertions, 1 deletions
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 $@ |