#!/usr/bin/make -f

export DEB_CXXFLAGS_MAINT_APPEND := -ggdb
# Disable WXDEBUG assertions (avoiding e.g. https://bugs.debian.org/754205) -
# with -DNDEBUG these are quietly dealt with like they were with wx2.8.
export DEB_CPPFLAGS_MAINT_APPEND := -DNDEBUG

%:
	dh $@ --with autotools_dev

override_dh_auto_configure:
	dh_auto_configure -- --disable-silent-rules

override_dh_install:
	dh_install
	mv debian/poedit/usr/bin/poedit debian/poedit/usr/bin/poeditor
	mv debian/poedit/usr/share/man/man1/poedit.1 debian/poedit/usr/share/man/man1/poeditor.1

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_strip:
	dh_strip --dbg-package=poedit-dbg

override_dh_auto_clean:
	if [ -e Makefile ]; then make distclean; fi

