#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=djantic
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.pytest_cache/

%:
	dh $@ --with mkdocs,python3 --buildsystem=pybuild

execute_after_dh_auto_build:
	LC_ALL=C.UTF-8 LANG=C.UTF-8 mkdocs build && rm -f site/sitemap.xml.gz && mv site html

execute_after_dh_clean:
	rm -rf html

override_dh_compress:
	dh_compress -Xsitemap.xml
