#!/usr/bin/make -f

#DH_VERBOSE=1
PYBUILD_NAME=python-repoze.tm2

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	sphinx-build -b html docs $(CURDIR)/debian/python-repoze.tm2-doc/usr/share/doc/python-repoze.tm2-doc/html
	dh_sphinxdoc -O--buildsystem=pybuild
endif

override_dh_installchangelogs:
	dh_installchangelogs -i CHANGES.rst

%:
	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
