#!/usr/bin/make -f export PYBUILD_NAME=gtkspellcheck export PYBUILD_SYSTEM=pyproject %: dh $@ --buildsystem pybuild ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) execute_after_dh_auto_build: LC_ALL=C PYTHONPATH=. http_proxy='http://127.0.0.1:9/' sphinx-build -N -bhtml docs/source build/sphinx/html endif execute_after_dh_install: # Upstream does not provide setup.py with the option install_locale any more thus we install this manually for lang in `find locale -mindepth 1 -maxdepth 1 -type d` ; do \ dh_install -p python3-$(PYBUILD_NAME) $${lang}/*.mo usr/share/$${lang}/LC_MESSAGES ; \ done