-SUBDIRS = src doc/man
-DISTCLEANFILES = pkg_err_file pkg_rpt_file
+# Copyright (C) 2009-2010 Nick Bowler
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved. This file is offered as-is,
+# without any warranty.
+
+ACLOCAL_AMFLAGS = -I m4
+
+EXTRA_DIST = m4/gnulib-cache.m4
+
+AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
+AM_LDFLAGS = -L$(top_builddir)/lib
+
+dist_man_MANS =
+dist_doc_DATA =
+noinst_HEADERS =
+lib_LTLIBRARIES =
+bin_PROGRAMS =
+
+include doc/Makefile.inc
+include src/Makefile.inc
+include src/gui/Makefile.inc
+
+SUBDIRS = lib .