debian: make it possible to by-pass doc build stable
authorDenis Laxalde <denis@laxalde.org>
Thu, 17 Oct 2019 20:33:02 +0200
branchstable
changeset 4911 ddfc0b16c9d7
parent 4910 7ddb17901934
child 4912 43e9bb4de6b5
debian: make it possible to by-pass doc build
debian/rules
--- a/debian/rules	Tue Oct 15 11:39:58 2019 +0200
+++ b/debian/rules	Thu Oct 17 20:33:02 2019 +0200
@@ -4,10 +4,12 @@
 %:
 	dh $@ --with python2,sphinxdoc --buildsystem=pybuild
 
+ifeq (,$(filter nodoc, $(DEB_BUILD_OPTIONS)))
 override_dh_auto_build:
 	dh_auto_build
 	# Workaround for Sphinx in Debian Buster defaulting to Python 3
 	SPHINXBUILD="python -m sphinx -bhtml" $(MAKE) -C docs
+endif
 
 hgsrc_defined:
 	# Use "! -z" instead of "-n", because "-n" without arguments is true