#!/usr/bin/make -f

export PYBUILD_NAME = flask-oidc

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

ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
export PYBUILD_AFTER_BUILD = \
	http_proxy=127.0.0.1:9 https_proxy=127.0.0.1:9 \
	PYTHONPATH=. python3 -m sphinx -N -bhtml docs/ \
	debian/flask-oidc/docs/html
endif
