mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2d683b3190
is not available for miniruby. fixed: [ruby-dev:27307] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
21 lines
847 B
Text
21 lines
847 B
Text
src: ripper.c eventids1.c $(srcdir)/lib/ripper/core.rb
|
|
|
|
ripper.o: ripper.c eventids1.c $(srcdir)/eventids2.c $(hdrdir)/lex.c
|
|
|
|
.y.c:
|
|
bison -t -v -o$@ $<
|
|
|
|
ripper.y: $(srcdir)/tools/preproc.rb $(hdrdir)/parse.y
|
|
$(RUBY) $(srcdir)/tools/preproc.rb $(hdrdir)/parse.y --output=$@
|
|
|
|
$(srcdir)/lib/ripper/core.rb: $(srcdir)/tools/generate.rb $(srcdir)/lib/ripper/core.rb.in $(hdrdir)/parse.y $(srcdir)/eventids2.c
|
|
$(RUBY) $(srcdir)/tools/generate.rb --mode=ripper/core --template=$@.in --output=$@ --ids1src=$(hdrdir)/parse.y --ids2src=$(srcdir)/eventids2.c
|
|
|
|
eventids1.c: $(srcdir)/tools/generate.rb $(hdrdir)/parse.y
|
|
$(RUBY) $(srcdir)/tools/generate.rb --mode=eventids1 --ids1src=$(hdrdir)/parse.y --output=$@
|
|
|
|
# Entries for Ripper maintainer
|
|
|
|
preproc: ripper.E
|
|
ripper.E: ripper.c
|
|
$(CC) -E $(CPPFLAGS) ripper.c | $(RUBY) $(srcdir)/tools/strip.rb > $@
|