#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.coverage exists {build_dir}/.pytest_cache {build_dir}/__pycache__ %: dh $@ --buildsystem=pybuild execute_before_dh_sphinxdoc: ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) PYTHONPATH=$$(pybuild --print build_dir --interpreter python3) python3 -m sphinx -b html -d $(CURDIR)/docs/.build/.doctrees -N $(CURDIR)/docs $(CURDIR)/debian/python-django-codemod-doc/usr/share/doc/python-django-codemod-doc/html endif execute_before_dh_installman: PYTHONPATH=$$(pybuild --print build_dir --interpreter python3) click-man --target $(CURDIR) djcodemod execute_before_dh_clean: $(RM) -r $(CURDIR)/docs/.build