mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
70373e2e54
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
.SUFFIXES: .y
|
|
c: ripper.c eventids1.c
|
|
dev: c rb
|
|
|
|
ripper.o: ripper.c $(hdrdir)/lex.c eventids1.c $(srcdir)/eventids2.c
|
|
|
|
.y.c:
|
|
bison -t -v -o$@ $<
|
|
|
|
ripper.y: $(hdrdir)/parse.y $(srcdir)/tools/preproc.rb
|
|
$(RUBY) $(srcdir)/tools/preproc.rb $(hdrdir)/parse.y > $@
|
|
|
|
eventids1.c: $(hdrdir)/parse.y $(srcdir)/tools/generate-eventids1.rb ids1
|
|
$(RUBY) $(srcdir)/tools/generate-eventids1.rb ids1 > $@
|
|
|
|
ids1: $(srcdir)/tools/list-parse-event-ids.rb $(hdrdir)/parse.y
|
|
$(RUBY) $(srcdir)/tools/list-parse-event-ids.rb -a $(hdrdir)/parse.y > $@
|
|
|
|
ids2: $(srcdir)/tools/list-scan-event-ids.rb $(srcdir)/eventids2.c
|
|
$(RUBY) $(srcdir)/tools/list-scan-event-ids.rb -a $(srcdir)/eventids2.c > $@
|
|
|
|
#
|
|
# Entries for only ripper developpers: DO NOT USE
|
|
#
|
|
|
|
# [WARNING]
|
|
# Never make core.rb automatically; it causes line terminator problem.
|
|
# See [ruby-dev:26462]
|
|
rb: $(srcdir)/lib/ripper/core.rb.in ids1 ids2 $(srcdir)/tools/generate-ripper_rb.rb
|
|
$(RUBY) $(srcdir)/tools/generate-ripper_rb.rb $(srcdir)/lib/ripper/core.rb.in ids1 ids2 > $(srcdir)/lib/ripper/core.rb
|
|
|
|
test:
|
|
$(RUBY) test/check-event-arity.rb $(hdrdir)/parse.y
|
|
sh test/check-event-coverage.sh
|
|
$(RUBY) test/check-scanner-event-coverage.rb
|
|
$(RUBY) test/validate.rb > /dev/null
|
|
@echo OK
|
|
|
|
preproc: ripper.E
|
|
ripper.E: ripper.c
|
|
$(CC) -E $(CPPFLAGS) ripper.c | $(RUBY) $(srcdir)/tools/strip.rb > $@
|