]> git.meshlink.io Git - catta/commitdiff
regenerate doxygen when a header or an example file is modified
authorSebastien Estienne <sebastien.estienne@gmail.com>
Sun, 21 Aug 2005 12:07:30 +0000 (12:07 +0000)
committerSebastien Estienne <sebastien.estienne@gmail.com>
Sun, 21 Aug 2005 12:07:30 +0000 (12:07 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@376 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

Makefile.am
common/doxygen.mk
doxygen.cfg

index 454a8593d1bf96cc7c4d880f8d5311dba6cd5144..2bfcd5d615274221d5b06482236379832a81e039 100644 (file)
@@ -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
 
index 420049eca3564dd70362b6d980574d0c36cf4fc5..eca9237c735259b4798fe50ea6f8b0574a3de6ed 100644 (file)
@@ -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 = \
index 822c78978ffc01345458658ba33b8cfa0b96d013..3ee8daf1e7daf5474062fd5537d0684925aba50d 100644 (file)
@@ -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           =