#!/usr/bin/make -f

#export DH_VERBOSE = 1

export PYBUILD_NAME=sarge

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs build/html

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	python3 $(CURDIR)/setup.py test
endif
