#!/usr/bin/make -f

export PYBUILD_NAME=pylibmc
export PYBUILD_AFTER_BUILD_python3=PYLIBMC_DIR={build_dir} {interpreter} -m sphinx -b html -d docs/.build/.doctrees -N docs docs/.build/html
export PYBUILD_DISABLE=test

export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow

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

override_dh_clean:
	rm -rf docs/.build
	dh_clean

override_dh_compress:
	dh_compress -X changelog.html
