summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-12-10 17:24:15 +0100
committerJavier S. Pedro <maemo@javispedro.com>2011-12-10 17:24:15 +0100
commit0ba6b5d4995171336281af73fd133e676bc57919 (patch)
tree6d952f466553bf53e523f1b5dd06c5aa7799c0e9
parent393b71d6464224b5d7c5c64c795190253cbd3b9f (diff)
downloadsowatch-0ba6b5d4995171336281af73fd133e676bc57919.tar.gz
sowatch-0ba6b5d4995171336281af73fd133e676bc57919.zip
Fixing Fremantle debian/rules
-rwxr-xr-xqtc_packaging/debian_fremantle/rules22
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