#!/usr/bin/make -f

export DH_VERBOSE = 1
export PYBUILD_DESTDIR_python3=debian/compute

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

override_dh_auto_test:
	@echo No tests there

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	http_proxy=127.0.0.1:9 https_proxy=127.0.0.1:9 \
	HTTP_PROXY=127.0.0.1:9 HTTPS_PROXY=127.0.0.1:9 \
	PYTHONPATH=. PYTHON=python3 python3 -m sphinx $(SPHINXOPTS) -b html \
		../docs/source \
		$(CURDIR)/debian/compute-doc/usr/share/doc/compute-doc/html
	dh_sphinxdoc
endif
