#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=nbformat

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

override_dh_auto_install:
	dh_auto_install
	rm -r `find debian/python-nbformat -name tests -type d`
	rm -r debian/python3-nbformat/usr/bin
	rm -r `find debian/python3-nbformat -name tests -type d`

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