Project

General

Profile

Bug #1231 ยป yacc.patch

cfis (Charlie Savage), 03/01/2009 05:21 PM

View differences:

win32/Makefile.sub (working copy)
s,@try_header@,try_compile,;t t
<<KEEP
{$(srcdir)}.y.c:
$(YACC) -d $(YFLAGS) -o y.tab.c $(<:\=/)
sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new
@$(MV) $@.new $@
sed -e "/^#line.*y\.tab\.h/d;/^#line.*parse\.y/d" y.tab.h > $(@:.c=.h).new
@$(IFCHANGE) $(@:.c=.h) $(@:.c=.h).new
@$(RM) y.tab.c y.tab.h
miniruby: miniruby$(EXEEXT)
miniruby$(EXEEXT):
    (1-1/1)