#!/usr/bin/make -f

export PYBUILD_NAME = isbg
export PYBUILD_BEFORE_TEST = cp -R examples {build_dir}
export PYBUILD_AFTER_TEST = rm -R {build_dir}/examples {build_dir}/tmp.txt

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

override_dh_installman:
	$(MAKE) docs man
	dh_installman build/sphinx/man/isbg.1
	dh_installman build/sphinx/man/isbg_sa_unwrap.1

override_dh_installdocs:
	$(MAKE) docs html
	dh_installdocs build/sphinx/html

override_dh_auto_clean:
	$(MAKE) docs-clean
