From c20dd6279f9f6f288def8eea25a64f8ad7a6f901 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 4 Dec 2018 07:08:26 +0100 Subject: [PATCH] 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. --- examples/local.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 $@ $@.tmp $(AM_V_at)$(MKDIR_P) %D% $(AM_V_at)touch $@.tmp