#!/usr/bin/make -f

VERSION := $(shell dpkg-parsechangelog -SVersion | cut -f1 -d- )
P2M := pod2man -u -s 6 -c Biloba -r $(VERSION)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_installman:
	test -e biloba.6 || $(P2M) debian/biloba.pod > biloba.6
	test -e biloba-server.6 || $(P2M) debian/biloba-server.pod > biloba-server.6
	dh_installman

override_dh_install:
	test -e debian/biloba.png || cp -p biloba_icon.png debian/biloba.png
	dh_install

