#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export PYBUILD_NAME=djangorestframework-xml %: dh $@ --buildsystem=pybuild execute_before_dh_mkdocs: ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) python3 -m mkdocs build -d $(CURDIR)/debian/python-djangorestframework-xml-doc/usr/share/doc/python-djangorestframework-xml-doc/html rm -f $(CURDIR)/debian/python-djangorestframework-xml-doc/usr/share/doc/python-djangorestframework-xml-doc/html/sitemap.xml.gz endif