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

GPX_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p' | cut -f1 -d-)

echo:
	echo $(GPX_VERSION)

%:
	dh $@

override_dh_auto_build:
	make all machines "GPX_VERSION=$(GPX_VERSION)"

%.1: %.pod
	pod2man --center "User Commands" --release=gpx $< > $@

override_dh_installman: debian/gpx.1 debian/s3gdump.1
	dh_installman
