mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
373a19b736
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
19 lines
744 B
Text
19 lines
744 B
Text
ripper.o: ripper.c eventids1.c $(srcdir)/eventids2.c $(hdrdir)/lex.c
|
|
|
|
.y.c:
|
|
bison -t -v -o$@ $<
|
|
|
|
ripper.y: $(hdrdir)/parse.y $(srcdir)/tools/preproc.rb
|
|
$(RUBY) $(srcdir)/tools/preproc.rb $(hdrdir)/parse.y > $@
|
|
|
|
$(srcdir)/lib/ripper/core.rb: $(srcdir)/lib/ripper/core.rb.in $(srcdir)/tools/generate.rb
|
|
$(RUBY) $(srcdir)/tools/generate.rb --mode=ripper/core --template=$@.in --output=$@ --ids1src=$(hdrdir)/parse.y --ids2src=$(srcdir)/eventids2.c
|
|
|
|
eventids1.c: $(hdrdir)/parse.y $(srcdir)/tools/generate.rb
|
|
$(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 > $@
|