#!/usr/bin/make -f

export PYBUILD_NAME=schwifty
export VERSIONED_INTERPRETER=`py3versions -d`

%:
	dh $@ --with sphinxdoc --buildsystem=pybuild

override_dh_sphinxdoc:
	cp $(CURDIR)/docs/source/conf.py $(CURDIR)/docs
	cp $(CURDIR)/docs/source/index.rst $(CURDIR)/docs
	PYTHONPATH=debian/python3-schwifty/usr/lib/${VERSIONED_INTERPRETER}/dist-packages ${VERSIONED_INTERPRETER} -m sphinx  -b html docs $(CURDIR)/debian/python-schwifty-doc/usr/share/doc/python-schwifty-doc/html
	dh_sphinxdoc
