[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/6] make: regenerate the example parsers when bison changes
From: |
Akim Demaille |
Subject: |
[PATCH 1/6] make: regenerate the example parsers when bison changes |
Date: |
Sat, 2 Feb 2019 18:13:02 +0100 |
* Makefile.am (dependencies): Also depend on Bison's sources.
---
Makefile.am | 4 ++--
examples/c++/calc++/local.mk | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 606469d1..d32b14a9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
diff --git a/examples/c++/calc++/local.mk b/examples/c++/calc++/local.mk
index 737ce5d2..66923a6b 100644
--- a/examples/c++/calc++/local.mk
+++ b/examples/c++/calc++/local.mk
@@ -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:
--
2.20.1
- [PATCH 0/6] master: various clean up, Akim Demaille, 2019/02/02
- [PATCH 1/6] make: regenerate the example parsers when bison changes,
Akim Demaille <=
- [PATCH 3/6] style: comment and name changes, Akim Demaille, 2019/02/02
- [PATCH 2/6] style: comment changes, Akim Demaille, 2019/02/02
- [PATCH 4/6] style: prefer snprintf to sprintf, Akim Demaille, 2019/02/02
- [PATCH 6/6] package: rename data/README as data/README.md, Akim Demaille, 2019/02/02
- [PATCH 5/6] style: reduce scopes, Akim Demaille, 2019/02/02