#!/usr/bin/make -f

export PYTHONWARNINGS=d
export PYBUILD_NAME=sphinxcontrib.spelling
export PYBUILD_TEST_NOSE=1

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docs/_build

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. sphinx-build -N -bhtml docs/source docs/_build/html
