make: regenerate the example parsers when bison changes

* Makefile.am (dependencies): Also depend on Bison's sources.
This commit is contained in:
Akim Demaille
2019-02-02 07:16:43 +01:00
parent 781d2b02de
commit 76366e8e5c
2 changed files with 2 additions and 4 deletions

View File

@@ -29,12 +29,12 @@ EXTRA_DIST = .prev-version .version cfg.mk PACKAGING \
dist_doc_DATA = AUTHORS COPYING NEWS README THANKS TODO
# Let generated files (e.g., from exampkles/) depend on this variable,
# Let generated files (e.g., from examples/) depend on this variable,
# to make sure they are regenerated when there are changes in Bison.
#
# Don't depend on $(BISON) otherwise we would rebuild these files
# in srcdir, including during distcheck, which is forbidden.
dependencies = $(BISON_IN) $(dist_skeletons_DATA)
dependencies = $(BISON_IN) $(src_bison_SOURCES) $(dist_skeletons_DATA)
## Running the bison from this tarball. To generate our own parser,
## but also to run the tests. Of course, you ought to keep a sane

View File

@@ -18,8 +18,6 @@
## Parser generation. ##
## ------------------- ##
# Don't depend on $(BISON) otherwise we would rebuild these files
# in srcdir, including during distcheck, which is forbidden.
%D%/parser.stamp: $(dependencies)
SUFFIXES += .yy .stamp
.yy.stamp: