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

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) distclean

override_dh_auto_configure:
	# Ensure nothing tries to re-bootstrap Autoconf with itself.
	touch configure `find . -name Makefile.in`
	dh_auto_configure -- EMACS=no HELP2MAN="`pwd`/build-aux/missing --run help2man" --with-lispdir=

override_dh_auto_build:
	dh_auto_build
	$(MAKE) html info pdf ps

override_dh_auto_test:

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp \
	    install install-html install-info install-pdf install-ps
	perl -pi -e 's/^my \$$VERSION.*/my \$$VERSION = "'"`date`"'";/;' \
	    debian/tmp/usr/share/autoconf/Autom4te/C4che.pm 

