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

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -lm

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--datadir=/usr/share/games \
		--bindir=/usr/games \
		--enable-sound \
		--enable-sdl-gfx

# does not work on m68k, so add it to the diff and run this only when needed
manpage:
	/usr/bin/docbook-to-man debian/luola.sgml > debian/luola.6
	nroff -man debian/luola.6 | less
