From afbe65a56b82c6801047cd80a80bdf53e7261f4d Mon Sep 17 00:00:00 2001
From: Reuben Thomas <rrt@sc3d.org>
Date: Wed, 29 Sep 2010 21:56:27 +0100
Subject: [PATCH] Make pmccabe2html cyclo HTML be rebuilt when sources change.

---
 ChangeLog              |    7 +++++++
 build-aux/pmccabe2html |    6 ++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7fdc713..27b4196 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-09-29  Reuben Thomas  <rrt@sc3d.org>
+
+	Make example pmccabe2html Makefile.am target depend on sources.
+	* build-aux/pmccabe2html: Add CYCLO_SOURCES variable, and make
+	cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
+	when the sources change.
+
 2010-09-29  Bruno Haible  <bruno@clisp.org>
 
 	Separate the module 'waitpid' from the module 'sys_wait'.
diff --git a/build-aux/pmccabe2html b/build-aux/pmccabe2html
index 28117af..22ec624 100644
--- a/build-aux/pmccabe2html
+++ b/build-aux/pmccabe2html
@@ -21,8 +21,10 @@
 
 # Typical Invocation is from a Makefile.am:
 #
-# cyclo-$(PACKAGE).html:
-# 	$(PMCCABE) ${top_srcdir}/src/*.[ch] \
+# CYCLO_SOURCES = ${top_srcdir}/src/*.[ch]
+#
+# cyclo-$(PACKAGE).html: $(CYCLO_SOURCES)
+# 	$(PMCCABE) $(CYCLO_SOURCES) \
 # 		| sort -nr \
 # 		| $(AWK) -f ${top_srcdir}/build-aux/pmccabe2html \
 # 			-v lang=html -v name="$(PACKAGE_NAME)" \
-- 
1.7.0.4

