#!/usr/bin/make -f

%:
	dh --with python2 $@

override_dh_install:
	dh_install
	install -D -m 755 debian/dh_pyppd $(CURDIR)/debian/pyppd/usr/bin/dh_pyppd
	install -D -m 644 debian/dh_pyppd.pm $(CURDIR)/debian/pyppd/usr/share/perl5/Debian/Debhelper/Sequence/pyppd.pm

override_dh_auto_build:
	dh_auto_build
	pod2man -c Debhelper -r '' debian/dh_pyppd > debian/dh_pyppd.1

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/dh_pyppd.1
