#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/GNUstep/debian/config.mk
d_app := $(CURDIR)/debian/timemon.app
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- $(optim) $(verbose) \
	  $(shell dpkg-buildflags --export=cmdline)

execute_before_dh_link:
	gsdh_gnustep --app
	convert TimeMon.tiff -resize 64x64 \
	  $(d_app)/usr/share/GNUstep/TimeMon.app/app-icon.png
