-EXTRA_DIST = bootstrap.sh LICENSE $(DX_CONFIG)
-SUBDIRS = avahi-common avahi-core avahi-discover avahi-client avahi-daemon initscript avahi-dnsconfd
+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 \
+ avahi.pc.in \
+ doxygen_to_devhelp.xsl
+
+SUBDIRS = \
+ m4 \
+ src \
+ include \
+ tests \
+ examples
+
+DX_INPUT = \
+ $(srcdir)/include/avahi/address.h \
+ $(srcdir)/include/avahi/malloc.h \
+ $(srcdir)/include/avahi/strlst.h \
+ $(srcdir)/include/avahi/alternative.h \
+ $(srcdir)/include/avahi/defs.h \
+ $(srcdir)/include/avahi/error.h \
+ $(srcdir)/include/avahi/domain.h \
+ $(srcdir)/include/avahi/watch.h \
+ $(srcdir)/include/avahi/simple-watch.h \
+ $(srcdir)/include/avahi/thread-watch.h \
+ $(srcdir)/include/avahi/core.h \
+ $(srcdir)/include/avahi/lookup.h \
+ $(srcdir)/include/avahi/publish.h \
+ $(srcdir)/include/avahi/rr.h \
+ $(srcdir)/include/avahi/log.h
+
+DX_EXAMPLE_PATH = $(srcdir)/examples
+DX_EXAMPLE_PATTERNS = *.c