#!/usr/bin/make -f #export DH_VERBOSE = 1 export PYBUILD_NAME = urlwatch # Documentation snippets are unit-tested, thus tests need access to documentation sources export PYBUILD_BEFORE_TEST=cp -r {dir}/docs {build_dir}/../; \ cp -r {dir}/lib/urlwatch/tests {build_dir}/urlwatch/; \ cp -r {dir}/share {build_dir}/../ export PYBUILD_AFTER_TEST=rm -rf {build_dir}/../docs {build_dir}/urlwatch/tests # Build HTML documentation, dh_installdocs installs it and dh_sphinxdoc fixes it up execute_after_dh_auto_build: sphinx-build -N -bhtml -d $(CURDIR)/debian/html-doctrees $(CURDIR)/docs/source $(CURDIR)/debian/html %: dh $@ --with python3,sphinxdoc,single-binary --buildsystem=pybuild