[mm-common] Rebuild reference doc on config header change



commit 5b307f977e85acb871bfa9531c6e025a18cd5caf
Author: Daniel Elstner <danielk openismus com>
Date:   Tue Sep 8 12:45:21 2009 +0200

    Rebuild reference doc on config header change
    
    * build/doc-reference.am (doc_dependencies): Prepend $(CONFIG_HEADER)
    to make the reference documentation build depend on the generated
    configuration header files of the module.  This way, the rebuild is
    triggered when necessary without causing too many spurious rebuilds.

 build/doc-reference.am |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/build/doc-reference.am b/build/doc-reference.am
index b1870c8..ef906e8 100644
--- a/build/doc-reference.am
+++ b/build/doc-reference.am
@@ -104,8 +104,12 @@ dh_xsl_params =	--stringparam book_title '$(book_title)' \
 		--stringparam book_base '$(htmlrefpub:/=)'
 
 # Regenerate the documentation automatically only in maintainer mode.
+# Depend on the generated configuration header files to trigger a rebuild
+# if a configuration value changed.  The configuration header files only
+# have their timestamp modified when the content actually changed, which
+# is not the case for any other files generated by configure.
 if MAINTAINER_MODE
-doc_dependencies = $(doc_input) $(srcdir)/reference/Doxyfile.in
+doc_dependencies = $(CONFIG_HEADER) $(doc_input) $(srcdir)/reference/Doxyfile.in
 else
 doc_dependencies =
 endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]