#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	pod2man --section=8 $(CURDIR)/collect-reminders > $(CURDIR)/collect-reminders.8
	pod2man $(CURDIR)/send-reminders > $(CURDIR)/send-reminders.1

override_dh_auto_install:
	dh_auto_install
	mv $(CURDIR)/debian/email-reminder/usr/bin/collect-reminders $(CURDIR)/debian/email-reminder/usr/sbin/
	rm -f $(CURDIR)/debian/email-reminder/usr/bin/email-reminder-editor
	rm -f $(CURDIR)/debian/email-reminder/usr/share/man/man1/collect-reminders.1p

override_dh_auto_test:
