#!/usr/bin/make -f

# See debhelper(7) (uncomment to enable).
# Output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME = gio-pyio

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
%:
	dh $@ --buildsystem=pybuild -with sphinxdoc

execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9
execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9
execute_after_dh_auto_build-indep:
	PYTHONPATH=src python3 -m sphinx -N -b html docs/source build/html

override_dh_installdocs:
	dh_installdocs -p python-gio-pyio-doc --doc-main-package python3-gio-pyio
	dh_installdocs --remaining-packages
else
%:
	dh $@ --buildsystem=pybuild
endif
