#!/usr/bin/make -f

export DH_VERBOSE = 1

# Inject standard compilation/hardening flags equivalent to %{optflags} and -fPIE
export DEB_CFLAGS_MAINT_APPEND = -g
export DEB_LDFLAGS_MAINT_APPEND = -fPIE -pie

%:
	dh $@

override_dh_auto_configure:
	sed -i -e "s@^docdir = .*@docdir = /usr/share/doc/greetdelay@" Makefile

override_dh_auto_install:
	# Ported from %install using debhelper's target routing
	dh_auto_install -- prefix=/usr
