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

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

# enable all hardening options
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_build:
	dh_auto_build --  DEB_CFLAGS="$(CFLAGS)" SOUND=YES JOY=YES DATA_PREFIX=/usr/share/games/gemdropx

override_dh_auto_install:
	dh_auto_install -- installbin="install -m 755" installdat="install -m 644"
	install -m 644 data/images/gemdropx-icon.xpm \
		$(CURDIR)/debian/gemdropx/usr/share/pixmaps/
	install -m 644 debian/gemdropx.desktop $(CURDIR)/debian/gemdropx/usr/share/applications
