#!/usr/bin/make -f

# Set to enable verbose output from debhelper
#export DH_VERBOSE=1

# Enable all hardening-related compiler options
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

install_dir = $(CURDIR)/debian/tmp

%:
	dh $@

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(install_dir)

override_dh_auto_configure:
	dh_auto_configure

override_dh_fixperms:
	dh_fixperms
	find debian -name 'hiscores.txt' -exec chmod 0666 {} +
