#!/usr/bin/make -f


AUTOMAKE_REMOVE := Makefile Makefile.in */Makefile */Makefile.in configure aclocal.m4
AUTOMAKE_REMOVE += *.lo *.o *.la */*.lo */*.o */*.la
AUTOMAKE_REMOVE += g15daemon/g15daemon g15daemon/g15daemontest
AUTOMAKE_REMOVE += config.status config.log config.h config.h.in config/* libtool stamp-h1
AUTOMAKE_REMOVE += */.libs/

clean::
	-rm -Rf $(AUTOMAKE_REMOVE)

makebuilddir:: Makefile


Makefile:: Makefile.am autogen.sh
	[ -d config ] || mkdir config
	aclocal -I config
	libtoolize --automake --force --copy
	autoheader
	automake --add-missing --copy
	autoconf

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

