[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
examples: regenerate them when version.texi changes
From: |
Akim Demaille |
Subject: |
examples: regenerate them when version.texi changes |
Date: |
Tue, 4 Dec 2018 08:48:59 +0100 |
commit c20dd6279f9f6f288def8eea25a64f8ad7a6f901
Author: Akim Demaille <address@hidden>
Date: Tue Dec 4 07:08:26 2018 +0100
examples: regenerate them when version.texi changes
When we extract the examples from the documentation, %require
"@value{VERSION}" is replaced with the current version. If we change
the git branch, without changing the documentation, the generated
examples will %require a version of Bison that differs from the actual
version.
* examples/local.mk (extracted.stamp): Depend on doc/version.texi.
diff --git a/examples/local.mk b/examples/local.mk
index 4763221d..3c7efff5 100644
--- a/examples/local.mk
+++ b/examples/local.mk
@@ -26,13 +26,13 @@ AM_CXXFLAGS =
\
doc = $(top_srcdir)/doc/bison.texi
extexi = $(top_srcdir)/%D%/extexi
if ENABLE_GCC_WARNINGS
-EXTEXIFLAGS = --synclines
+ EXTEXIFLAGS = --synclines
endif
extract = VERSION="$(VERSION)" $(PERL) $(extexi) $(EXTEXIFLAGS) $(doc) --
extracted =
EXTRA_DIST += $(extracted)
MAINTAINERCLEANFILES += $(extracted) %D%/extracted.stamp
-%D%/extracted.stamp: $(doc) $(extexi)
+%D%/extracted.stamp: $(doc) doc/version.texi $(extexi)
$(AM_V_GEN)rm -f $@ address@hidden
$(AM_V_at)$(MKDIR_P) %D%
$(AM_V_at)touch address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- examples: regenerate them when version.texi changes,
Akim Demaille <=