[elbe-devel] [PATCH 4/4] debian/rules: enable parallel building of docs

Manuel Traut manut at linutronix.de
Tue Jun 20 21:22:14 CEST 2017


Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 debian/rules | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 1d142580..39160f30 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,16 @@
 #!/usr/bin/make -f
 
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	MAKE_OPTS += -j$(NUMJOBS)
+endif
+
 override_dh_auto_configure:
-	cd docs && $(MAKE)
+	cd docs && $(MAKE) $(MAKE_OPTS)
 
 override_dh_clean:
 	dh_clean
-	$(MAKE) -C docs clean
+	$(MAKE) $(MAKE_OPTS) -C docs clean
 
 override_dh_compress:
 	dh_compress -X.xml
-- 
2.11.0





More information about the elbe-devel mailing list