#!/usr/bin/make -f include /usr/share/dpkg/pkg-info.mk # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export PYBUILD_NAME=django-pint export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.coverage {build_dir}/coverage.xml export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM) %: dh $@ --buildsystem=pybuild execute_before_dh_sphinxdoc: ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) PYTHONPATH=$(CURDIR) python3 -m sphinx -b html -d $(CURDIR)/docs/.build/.doctrees -N $(CURDIR)/docs $(CURDIR)/debian/python-django-pint-doc/usr/share/doc/python-django-pint-doc/html endif execute_before_dh_clean: $(RM) -r $(CURDIR)/docs/.build