* doc/Makefile.am (regen-examples-outputs-mk): New (phony) target.
(regen-am): Invoke regen-examples-outputs-mk.
---
milena/ChangeLog | 7 +++++++
milena/doc/Makefile.am | 14 +++++++++++++-
2 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index d48cb6c..ab828ac 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,10 @@
+2010-03-17 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Add a rule to forcefully regen doc/examples-outputs.mk.
+
+ * doc/Makefile.am (regen-examples-outputs-mk): New (phony) target.
+ (regen-am): Invoke regen-examples-outputs-mk.
+
2010-03-16 Roland Levillain <roland(a)lrde.epita.fr>
Ship doc/gen-examples-outputs-mk.
diff --git a/milena/doc/Makefile.am b/milena/doc/Makefile.am
index 9ba03c0..e31ddc8 100644
--- a/milena/doc/Makefile.am
+++ b/milena/doc/Makefile.am
@@ -913,6 +913,14 @@ $(DOC_SRCDIR)/examples-outputs.mk:
$(DOC_SRCDIR)/gen-examples-outputs-mk $(srcdi
chmod -w $@
include $(DOC_SRCDIR)/examples-outputs.mk
+.PHONY: regen-examples-outputs-mk
+regen-examples-outputs-mk:
+ $(DOC_SRCDIR)/gen-examples-outputs-mk $(PROGRAMS_examples) \
+ >$(DOC_SRCDIR)/examples-outputs.mk.tmp
+ mv -f $(DOC_SRCDIR)/examples-outputs.mk.tmp \
+ $(DOC_SRCDIR)/examples-outputs.mk
+ chmod -w $(DOC_SRCDIR)/examples-outputs.mk
+
MAINTAINERCLEANFILES += $(OUTPUTS)
# FIXME: Warning: $(SPLIT_EXAMPLES_SRCDIR) might not exist. Ensure it
@@ -1045,6 +1053,10 @@ $(srcdir)/split-outputs.stamp: $(OUTPUTS)
@mv -f $@.tmp $@
+## -------------- ##
+## Regeneration. ##
+## -------------- ##
+
# Regen Make helpers.
EXTRA_DIST += generate_dist_files.sh headers.stamp
include $(top_srcdir)/build-aux/regen-recursive.mk
@@ -1053,12 +1065,12 @@ include $(top_srcdir)/build-aux/regen-recursive.mk
regen-am:
@rm -f $(srcdir)/headers.stamp.tmp
@touch $(srcdir)/headers.stamp.tmp
+ $(MAKE) $(AM_MAKEFLAGS) regen-examples-outputs-mk
@cd $(srcdir) && \
./generate_dist_files.sh figures 'p*m' && \
./generate_dist_files.sh outputs txt && \
./generate_dist_files.sh examples cc.raw
@mv -f $(srcdir)/headers.stamp.tmp $(srcdir)/headers.stamp
-## FIXME: Regen examples-outputs.mk as well?
$(srcdir)/examples/examples.mk: $(srcdir)/headers.stamp
$(srcdir)/outputs/outputs.mk: $(srcdir)/headers.stamp
--
1.5.6.5
Show replies by date