#!/usr/bin/make -f

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

export PYBUILD_NAME=pamqp

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

execute_before_dh_mkdocs:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	python3 -m mkdocs build -d $(CURDIR)/debian/python-pamqp-doc/usr/share/doc/python-pamqp-doc/html
	rm -f $(CURDIR)/debian/python-pamqp-doc/usr/share/doc/python-pamqp-doc/html/sitemap.xml.gz
endif
