#!/usr/bin/make -f
version := $(shell dpkg-parsechangelog | sed -nr 's/^Version: (.*)/\1/p')
pod2man := pod2man -r "dh-dist-zilla v$(version)" -c dh-dist-zilla

%:
	dh $@

override_dh_auto_build:
	$(pod2man) --section=7 dh-dist-zilla.pod dh-dist-zilla.7
	$(pod2man) --section=1 dh_dzil_build dh_dzil_build.1
	$(pod2man) --section=1 dh_dzil_clean dh_dzil_clean.1
