#!/usr/bin/make -f export PYBUILD_NAME=pathlib LAST_CHANGE=$(shell dpkg-parsechangelog -S Date) BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)") %: dh $@ --with python2,sphinxdoc --buildsystem=pybuild override_dh_auto_clean: dh_auto_clean make -C docs clean override_dh_auto_build: dh_auto_build make -C docs html man text SPHINXOPTS="-D today=\"$(BUILD_DATE)\"" override_dh_auto_test: PYBUILD_TEST_ARGS="-s $(CURDIR)" dh_auto_test override_dh_compress: dh_compress -X.txt