#!/usr/bin/make -f
%:
	dh $@

override_dh_autoreconf:

override_dh_auto_configure:
	dh_auto_configure -- --prefix=/usr --enable-nls --with-ncursesw --disable-rpath-hack \
			     --with-shared --with-libtool

override_dh_auto_install:
	dh_auto_install -- install install-lib
	sed -i '/DLG_SYSTEM_NAME/d' debian/tmp/usr/include/dlg_config.h
	rm -f debian/tmp/usr/bin/dialog-config

override_dh_installdocs:
	dh_installdocs CHANGES README

override_dh_installchangelogs:
	dh_installchangelogs --no-trim -X CHANGES
