include /usr/share/openstack-pkg-tools/pkgos.make
%:
- dh $@ --with python2,systemd
+ dh $@ --with python2,systemd,sphinxdoc
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
# temporary workaround for d2to1 wonkyness
dh_clean -Xsetup.cfg
rm -f debian/*.init debian/*.service debian/*.upstart
+
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+ python setup.py build_sphinx
+ cp -rf doc/build/html $(CURDIR)/debian/cinder-doc/usr/share/doc/cinder-doc
+ dh_sphinxdoc -O--buildsystem=python_distutils
+endif