summaryrefslogtreecommitdiffstats
path: root/ubuntu/maverick/applications/gwenview-i18n/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/maverick/applications/gwenview-i18n/debian/rules')
-rwxr-xr-xubuntu/maverick/applications/gwenview-i18n/debian/rules9
1 files changed, 7 insertions, 2 deletions
diff --git a/ubuntu/maverick/applications/gwenview-i18n/debian/rules b/ubuntu/maverick/applications/gwenview-i18n/debian/rules
index ec8ece95d..069018570 100755
--- a/ubuntu/maverick/applications/gwenview-i18n/debian/rules
+++ b/ubuntu/maverick/applications/gwenview-i18n/debian/rules
@@ -9,6 +9,11 @@ include /usr/share/cdbs/1/rules/utils.mk
-include debian/debiandirs
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ DEB_PARALLEL_JOBS ?= $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
+DEB_MAKE_PARALLEL ?= $(and $(DEB_BUILD_PARALLEL),$(DEB_PARALLEL_JOBS),-j$(DEB_PARALLEL_JOBS))
+
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2)
@@ -42,7 +47,7 @@ build: debian/build-stamp
debian/build-stamp:
dh_testdir
- $(MAKE)
+ $(MAKE) $(DEB_MAKE_PARALLEL)
touch debian/build-stamp
install/gwenview-i18n-trinity::
@@ -50,7 +55,7 @@ install/gwenview-i18n-trinity::
dh_testroot
dh_clean -k
- $(MAKE) install DESTDIR=$(CURDIR)/debian/gwenview-i18n-trinity
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/gwenview-i18n-trinity $(DEB_MAKE_PARALLEL)
for LANG in $(DOC_LANGS); do \
cd $(CURDIR)/debian/gwenview-i18n-trinity/$(kde_htmldir)/$$LANG/gwenview; \