#!/usr/bin/make -f

#export DH_VERBOSE=1

export PYBUILD_NAME = fqdn

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_build-indep:
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	PYTHONPATH=`pybuild --print build_dir --interpreter python3` \
	  $(MAKE) -C docs html SPHINXBUILD="python3 -m sphinx"
endif
