#!/usr/bin/make -f
export DEB_LDFLAGS_MAINT_APPEND = -lm -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --parallel --with autotools_dev

override_dh_auto_configure:
	dh_auto_configure -- \
	 --prefix=/usr \
	 --bindir=\$${prefix}/games

override_dh_fixperms:
	dh_fixperms -X/usr/games/atomix -X/var/games/atomix.scores
	chown root.games $(CURDIR)/debian/atomix/var/games/atomix.scores


