From 041391c746beff4016ca0a79744de154748438ce Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Sun, 21 Aug 2005 12:07:30 +0000 Subject: regenerate doxygen when a header or an example file is modified git-svn-id: file:///home/lennart/svn/public/avahi/trunk@376 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- Makefile.am | 25 +++++++++++++++++++++++++ common/doxygen.mk | 3 ++- doxygen.cfg | 6 +++--- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 454a859..2bfcd5d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -53,6 +53,31 @@ SUBDIRS = \ man \ tests +DX_INPUT = \ + $(srcdir)/avahi-common/cdecl.h \ + $(srcdir)/avahi-core/core.h \ + $(srcdir)/avahi-common/address.h \ + $(srcdir)/avahi-core/rr.h \ + $(srcdir)/avahi-common/strlst.h \ + $(srcdir)/avahi-common/alternative.h \ + $(srcdir)/avahi-core/log.h \ + $(srcdir)/avahi-common/defs.h \ + $(srcdir)/avahi-client/client.h \ + $(srcdir)/avahi-common/error.h \ + $(srcdir)/avahi-common/malloc.h \ + $(srcdir)/avahi-common/domain.h \ + $(srcdir)/avahi-common/gccmacro.h \ + $(srcdir)/avahi-common/watch.h \ + $(srcdir)/avahi-common/simple-watch.h \ + $(srcdir)/avahi-glib/glib-watch.h \ + $(srcdir)/avahi-glib/glib-malloc.h \ + $(srcdir)/avahi-common/timeval.h \ + $(srcdir)/avahi-common/dbus.h + +DX_EXAMPLE_PATH = $(srcdir)/examples + +DX_EXAMPLE_PATTERNS = *.c + pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = avahi-core.pc diff --git a/common/doxygen.mk b/common/doxygen.mk index 420049e..eca9237 100644 --- a/common/doxygen.mk +++ b/common/doxygen.mk @@ -166,8 +166,9 @@ doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL) -@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS) +@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS) $(DX_INPUT) $(DX_EXAMPLE_PATH)/$(DX_EXAMPLE_PATTERNS) rm -rf @DX_DOCDIR@ + INPUT='$(DX_INPUT)' EXAMPLE_PATH='$(DX_EXAMPLE_PATH)' EXAMPLE_PATTERNS='$(DX_EXAMPLE_PATTERNS)' \ $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG) DX_CLEANFILES = \ diff --git a/doxygen.cfg b/doxygen.cfg index 822c789..3ee8daf 100644 --- a/doxygen.cfg +++ b/doxygen.cfg @@ -68,14 +68,14 @@ WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- -INPUT = $(SRCDIR)/avahi-common/cdecl.h $(SRCDIR)/avahi-core/core.h $(SRCDIR)/avahi-common/address.h $(SRCDIR)/avahi-core/rr.h $(SRCDIR)/avahi-common/strlst.h $(SRCDIR)/avahi-common/alternative.h $(SRCDIR)/avahi-core/log.h $(SRCDIR)/avahi-common/defs.h $(SRCDIR)/avahi-client/client.h $(SRCDIR)/avahi-common/error.h $(SRCDIR)/avahi-common/malloc.h $(SRCDIR)/avahi-common/domain.h $(SRCDIR)/avahi-common/gccmacro.h $(SRCDIR)/avahi-common/watch.h $(SRCDIR)/avahi-common/simple-watch.h $(SRCDIR)/avahi-glib/glib-watch.h $(SRCDIR)/avahi-glib/glib-malloc.h $(SRCDIR)/avahi-common/timeval.h $(SRCDIR)/avahi-common/dbus.h +INPUT = $(INPUT) FILE_PATTERNS = RECURSIVE = NO EXCLUDE = EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = -EXAMPLE_PATH = $(SRCDIR)/examples -EXAMPLE_PATTERNS = *.c +EXAMPLE_PATH = $(EXAMPLE_PATH) +EXAMPLE_PATTERNS = $(EXAMPLE_PATTERNS) EXAMPLE_RECURSIVE = NO IMAGE_PATH = INPUT_FILTER = -- cgit