3 # Uncomment this to turn on verbose mode.
6 include /usr/share/openstack-pkg-tools/pkgos.make
9 dh $@ --with python2,systemd,sphinxdoc
11 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
12 override_dh_auto_test:
13 rm -rf .testrepository
16 TEMP_REZ=`mktemp -t` && \
17 testr run --subunit | tee $$TEMP_REZ | subunit2pyunit; \
22 dh_install --fail-missing -Xbin/cinder-all
25 dh_fixperms -Xcinder_tgt.conf
28 # temporary workaround for d2to1 wonkyness
30 rm -f debian/*.init debian/*.service debian/*.upstart
32 override_dh_sphinxdoc:
33 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
34 python setup.py build_sphinx
35 cp -rf doc/build/html $(CURDIR)/debian/cinder-doc/usr/share/doc/cinder-doc
36 dh_sphinxdoc -O--buildsystem=python_distutils