#!/usr/bin/make -f

#DH_VERBOSE=1
export PYBUILD_NAME=setproctitle

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

override_dh_auto_build:
	dh_auto_build
	rst2man README.rst | nroff -mandoc > build/README
	rst2man HISTORY.rst | nroff -mandoc > build/HISTORY

override_dh_auto_test:
	$(MAKE) check PYTHON=python2 PYCONFIG=python2-config
