#!/usr/bin/make -f

#export DH_VERBOSE=1

%:
	dh $@ --with python2 --buildsystem=python_distutils

# python-ply is now the only binary package, so debhelper would default to
# installing straight into debian/python-ply; debian/python-ply.install still
# expects the staging tree, so keep it at debian/tmp.
override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp

override_dh_auto_build:
	dh_auto_build
	pod2man debian/dh_python-ply > dh_python-ply.1

override_dh_gencontrol:
	echo "python-ply:Provides=$$(PYTHONPATH=. python debian/virtual-packages.py python-ply)" \
		>> debian/python-ply.substvars
	dh_gencontrol

override_dh_compress:
	dh_compress --exclude=.py

override_dh_auto_test:
