diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ripper/depend | 2 | ||||
-rw-r--r-- | ext/ripper/extconf.rb | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/ext/ripper/depend b/ext/ripper/depend index 84deba62ed..9aba267533 100644 --- a/ext/ripper/depend +++ b/ext/ripper/depend @@ -1,6 +1,7 @@ GEN = $(srcdir)/tools/generate.rb SRC1 = $(top_srcdir)/parse.y SRC2 = $(srcdir)/eventids2.c +BISON = $(BASERUBY) $(top_srcdir)/tool/lrama/exe/lrama .SUFFIXES: .y @@ -10,6 +11,7 @@ ripper.o: ripper.c .y.c: $(ECHO) compiling compiler $< + $(ECHO) $(BISON) $(Q) $(BISON) -t -v -oy.tab.c $< $(Q) sed -e "/^#/s!y\.tab\.c!$@!" -f $(top_srcdir)/tool/ytab.sed y.tab.c > $@ @$(RM) y.tab.c diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb index 65cb5030d3..bff5d429c3 100644 --- a/ext/ripper/extconf.rb +++ b/ext/ripper/extconf.rb @@ -7,11 +7,11 @@ require 'rbconfig' def main yacc = ENV["YACC"] || "bison" - unless find_executable(yacc) - unless File.exist?('ripper.c') or File.exist?("#{$srcdir}/ripper.c") - raise 'missing bison; abort' - end - end + # unless find_executable(yacc) + # unless File.exist?('ripper.c') or File.exist?("#{$srcdir}/ripper.c") + # raise 'missing bison; abort' + # end + # end $objs = %w(ripper.o) $distcleanfiles.concat %w(ripper.y ripper.c eventids1.c eventids2table.c) $cleanfiles.concat %w(ripper.E ripper.output y.output .eventids2-check) |