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

export DESTDIR=$(CURDIR)/debian/tantan/usr
export DH_ALWAYS_EXCLUDE=.gitignore
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	PATH=$(CURDIR)/bin:$$PATH debian/createmanpages

override_dh_auto_install:
	make prefix=$(DESTDIR) install

override_dh_auto_clean:
	dh_auto_clean
	rm -f src/version.hh
	rm -f debian/tantan.1
