#!/usr/bin/make -f #export DH_VERBOSE=1 export PYBUILD_NAME = sphinx-mdinclude export PYBUILD_PYTEST = 1 %: dh $@ --with=sphinxdoc --buildsystem=pybuild ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) execute_after_dh_auto_build: export PYTHONPATH=$$(pybuild --print build_dir | grep "^$$(py3versions -d)" | sed -e 's/^.*: //'); \ sphinx-build -W -b html docs docs/_build/html cp docs/example.md docs/_build/html/example.md.txt perl -i -pe 's%