Bug #1231: YACC Make Rule Fails when building from source with nmake
http://redmine.ruby-lang.org/issues/show/1231

Author: Charlie Savage
Status: Open, Priority: Normal
Category: core, Target version: 1.9.1
ruby -v: ruby 1.9.2dev (2009-03-01) [i386-mswin32_90]

Check out Ruby from svn.  Build it using VC2008 and nmake.

nmake will try to compile .y files to .c files.  Assuming that you have bison and sed installed (via cygwin or msys) this fails because nmake grabs the y.c rule from the common.mk file, which is designed for GNU make.

Instead of:

$(YACC) -d $(YFLAGS) -o y.tab.c $(<:\\=/)

It should be:

$(YACC) -d $(YFLAGS) -o y.tab.c $(<:\=/)

The attached patch adds the correct rule to Makefile.sub for nmake, leaving the GNUMake one alone.


----------------------------------------
http://redmine.ruby-lang.org