]> git.saurik.com Git - bison.git/commitdiff
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:10:41 +0000 (10:10 +0200)
* Makefile.am (regen): New target.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index e29b1ddfe6ccb5881e10922490b260f692a63e2a..392d2112bebbbff8e4df7dde320cc862dfd52708 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