summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2012-06-20 10:02:11 +0200
committerAkim Demaille <akim@lrde.epita.fr>2012-06-20 10:10:41 +0200
commit71bff31edd4ddbfe3c350933652bb0e3a4a7f3e2 (patch)
tree0f752c045d880f032e7f58fc8da3221d4e28f81f /cfg.mk
parent0dd59ce3b4a23320b1edf604addda40215bc1aa7 (diff)
downloadbison-71bff31edd4ddbfe3c350933652bb0e3a4a7f3e2.tar.gz
maint: regen.
* Makefile.am (regen): New target.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index e29b1ddf..392d2112 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -14,6 +14,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# Update version, then recompile so that tests/bison --version be
+# up-to-date, then compile our parser again with our up-to-date bison.
+.PHONY: regen
+regen: _version
+ $(MAKE) $(AM_MAKEFLAGS)
+ touch $(srcdir)/src/parse-gram.y
+ $(MAKE) $(AM_MAKEFLAGS)
+
# Used in maint.mk's web-manual rule
manual_title = The Yacc-compatible Parser Generator