#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export ACLOCAL = aclocal -I m4

%:
	dh $@ --no-parallel --sourcedirectory=amide-current/

override_dh_auto_configure:
	mv amide-current/help/C/amide.xml amide-current/help/C/index.docbook
	dh_auto_configure --sourcedirectory=amide-current/ -- \
		--disable-amide-debug \
		--config-cache \
		--disable-dependency-tracking \
		--prefix=/usr \
		--localstatedir=/var/lib/amide \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		--localstatedir=/var/lib/amide \
                --disable-gconf \
                --disable-gnome-vfs \
		LDFLAGS="-Wl,-z,defs $(LDFLAGS)"

# To create the docs this option would be needed but it causes build problems
# see doc/README
#		--enable-gtk-doc \


override_dh_auto_test:
	echo "Do not run autotest"
