#!/usr/bin/make -f

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

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_CFLAGS_MAINT_APPEND = -Wno-error=implicit-int -Wno-error=format -Wno-error=declaration-missing-parameter-type -Wno-error=implicit-function-declaration
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf

execute_before_dh_auto_configure:
	cp -v -r scripts/* ./

override_dh_auto_install:
	dh_auto_install
	sed -i -e "s,/usr/bin/wish,$(shell readlink -f /usr/bin/wish)," debian/irsim/usr/bin/irsim
