-EXTRA_DIST = bootstrap.sh LICENSE doxygen/Makefile.am doxygen/Makefile.in doxygen/doxygen.conf.in
-SUBDIRS = avahi-common avahi-core avahi-discover avahi-client avahi-daemon doxygen
+ACLOCAL_AMFLAGS = -I m4
+
+include $(srcdir)/m4/doxygen.mk
+
+EXTRA_DIST = \
+ LICENSE \
+ $(DX_CONFIG) \
+ docs/INSTALL \
+ docs/TODO \
+ docs/NEWS \
+ docs/README \
+ docs/DBUS-API \
+ docs/AUTHORS \
+ docs/HACKING \
+ docs/API-CHANGES-0.6 \
+ docs/COMPAT-LAYERS \
+ docs/MALLOC \
+ docs/overview.dia \
+ docs/server-states.dia \
+ docs/avahi-poll.dia \
+ catta.pc.in \
+ doxygen_to_devhelp.xsl
+
+SUBDIRS = \
+ src \
+ include \
+ tests \
+ examples
+
+DX_INPUT = \
+ $(srcdir)/include/catta/address.h \
+ $(srcdir)/include/catta/malloc.h \
+ $(srcdir)/include/catta/strlst.h \
+ $(srcdir)/include/catta/alternative.h \
+ $(srcdir)/include/catta/defs.h \
+ $(srcdir)/include/catta/error.h \
+ $(srcdir)/include/catta/domain.h \
+ $(srcdir)/include/catta/watch.h \
+ $(srcdir)/include/catta/simple-watch.h \
+ $(srcdir)/include/catta/thread-watch.h \
+ $(srcdir)/include/catta/core.h \
+ $(srcdir)/include/catta/lookup.h \
+ $(srcdir)/include/catta/publish.h \
+ $(srcdir)/include/catta/rr.h \
+ $(srcdir)/include/catta/log.h
+
+DX_EXAMPLE_PATH = $(srcdir)/examples
+DX_EXAMPLE_PATTERNS = *.c