#! /usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=python-csb43
export SETUPTOOLS_SCM_PRETEND_VERSION=${DEB_VERSION_UPSTREAM}

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

override_dh_auto_build:
	dh_auto_build
	# TODO: evtl. regenerate from code
	#rm -rf doc/html doc/source/*.rst
	#sphinx-apidoc -o doc/source csb43/
	sphinx-build doc/source build/html
