#!/usr/bin/make -f
#DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_install:
	dh_install
	rm -f $(CURDIR)/debian/steghide/usr/share/doc/steghide/INSTALL
	rm -f $(CURDIR)/debian/steghide/usr/share/doc/steghide/INSTALL.gz
	rm -f $(CURDIR)/debian/steghide/usr/share/doc/steghide/COPYING
	rm -f $(CURDIR)/debian/steghide/usr/share/doc/steghide/COPYING.gz
	rm -f $(CURDIR)/debian/steghide-doc/usr/share/doc/steghide-doc/html/jquery.js
override_dh_auto_test:

# Dirty hack restoring our patched Makefiles, fixing FTBFS with autoconf 2.73.
execute_after_dh_autoreconf:
	mv intl/Makefile.in~ intl/Makefile.in
	mv po/Makefile.in.in~ po/Makefile.in.in

# po/ru.po gets modified during build, restore it after that.
execute_before_dh_auto_build:
	cp -a po/ru.po po/ru.po~

execute_after_dh_auto_install:
	mv po/ru.po~ po/ru.po
