mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
1d62cc0ecc
* parse.y (Init_ripper): ripper_init_eventids*() takes 1 argument, self (class Ripper). * ext/ripper/depend: target removed: `lib/ripper/core.rb'. * ext/ripper/depend: new target `eventids2table.c'. * ext/ripper/depend: new target `check'. * ext/ripper/eventids2.c: include eventids2table.c. * ext/ripper/eventids2.c: initialize SCANNER_EVENT_TABLE. * ext/ripper/extconf.rb: update $cleanfiles list. * ext/ripper/tools/generate.rb: no longer generate ripper/core.rb. * ext/ripper/tools/generate.rb: new mode `check'. * ext/ripper/tools/generate.rb: new mode `eventids2table'. * ext/ripper/lib/ripper/core.rb.in: removed. * ext/ripper/lib/ripper/core.rb: added. * ext/ripper/lib/ripper/filter.rb: update copyright year. * ext/ripper/lib/ripper/lexer.rb: ditto. * ext/ripper/lib/ripper/sexp.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
28 lines
850 B
Text
28 lines
850 B
Text
GEN = $(srcdir)/tools/generate.rb
|
|
SRC1 = $(hdrdir)/parse.y
|
|
SRC2 = $(srcdir)/eventids2.c
|
|
|
|
src: ripper.c eventids1.c eventids2table.c
|
|
|
|
ripper.o: ripper.c $(hdrdir)/lex.c eventids1.c $(srcdir)/eventids2.c eventids2table.c
|
|
|
|
.y.c:
|
|
bison -t -v -o$@ $<
|
|
|
|
ripper.y: check $(srcdir)/tools/preproc.rb $(hdrdir)/parse.y
|
|
$(RUBY) $(srcdir)/tools/preproc.rb $(hdrdir)/parse.y --output=$@
|
|
|
|
check: $(GEN) $(SRC1) $(SRC2)
|
|
$(RUBY) $(GEN) --mode=check --ids1src=$(SRC1) --ids2src=$(SRC2)
|
|
|
|
eventids1.c: $(srcdir)/tools/generate.rb $(SRC1)
|
|
$(RUBY) $(GEN) --mode=eventids1 --ids1src=$(SRC1) --output=$@
|
|
|
|
eventids2table.c: $(srcdir)/tools/generate.rb $(SRC2)
|
|
$(RUBY) $(GEN) --mode=eventids2table --ids2src=$(SRC2) --output=$@
|
|
|
|
# Entries for Ripper maintainer
|
|
|
|
preproc: ripper.E
|
|
ripper.E: ripper.c
|
|
$(CC) -E $(CPPFLAGS) ripper.c | $(RUBY) $(srcdir)/tools/strip.rb > $@
|