mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 02:33:03 +00:00
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.
This commit is contained in:
@@ -26,13 +26,13 @@ AM_CXXFLAGS = \
|
|||||||
doc = $(top_srcdir)/doc/bison.texi
|
doc = $(top_srcdir)/doc/bison.texi
|
||||||
extexi = $(top_srcdir)/%D%/extexi
|
extexi = $(top_srcdir)/%D%/extexi
|
||||||
if ENABLE_GCC_WARNINGS
|
if ENABLE_GCC_WARNINGS
|
||||||
EXTEXIFLAGS = --synclines
|
EXTEXIFLAGS = --synclines
|
||||||
endif
|
endif
|
||||||
extract = VERSION="$(VERSION)" $(PERL) $(extexi) $(EXTEXIFLAGS) $(doc) --
|
extract = VERSION="$(VERSION)" $(PERL) $(extexi) $(EXTEXIFLAGS) $(doc) --
|
||||||
extracted =
|
extracted =
|
||||||
EXTRA_DIST += $(extracted)
|
EXTRA_DIST += $(extracted)
|
||||||
MAINTAINERCLEANFILES += $(extracted) %D%/extracted.stamp
|
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_GEN)rm -f $@ $@.tmp
|
||||||
$(AM_V_at)$(MKDIR_P) %D%
|
$(AM_V_at)$(MKDIR_P) %D%
|
||||||
$(AM_V_at)touch $@.tmp
|
$(AM_V_at)touch $@.tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user