#!/usr/bin/make -f

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

execute_after_dh_auto_build:
	# A rather dirty way of preventing information being built into man-page,
	# in case we want to build the complete documentation in a separate package.
	rm -f docs/installation.rst
	rm -f docs/quickstart.rst
	PYTHONPATH=. python3 -m sphinx -N -bman docs/ build/man # Manpage generator

override_dh_installchangelogs:
	dh_installchangelogs NEWS.md
