maint: regen.
authorAkim Demaille <akim@lrde.epita.fr>
Wed, 20 Jun 2012 08:02:11 +0000 (10:02 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Wed, 20 Jun 2012 08:17:14 +0000 (10:17 +0200)
* Makefile.am (regen): New target.
(cherry picked from commit 71bff31edd4ddbfe3c350933652bb0e3a4a7f3e2)

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index c56e965bfe6b69ad140e429fccfbfa1feb8d5812..31a2532f8ee06a094b041b216ca4d7d252ad7c11 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
 # 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