2005-09-21 01:17:54 -04:00
|
|
|
c : ripper.c eventids1.c
|
2005-09-19 02:12:35 -04:00
|
|
|
dev: c rb
|
2005-06-02 10:43:10 -04:00
|
|
|
|
2004-11-20 06:44:02 -05:00
|
|
|
ripper.o: ripper.c $(hdrdir)/lex.c eventids1.c $(srcdir)/eventids2.c
|
2004-09-12 13:34:30 -04:00
|
|
|
|
2005-06-02 10:43:10 -04:00
|
|
|
.y.c:
|
|
|
|
bison -t -v -o$@ $<
|
2004-09-12 13:34:30 -04:00
|
|
|
|
|
|
|
ripper.y: $(hdrdir)/parse.y $(srcdir)/tools/preproc.rb
|
|
|
|
$(RUBY) $(srcdir)/tools/preproc.rb $(hdrdir)/parse.y > $@
|
|
|
|
|
2004-09-14 07:27:36 -04:00
|
|
|
eventids1.c: $(hdrdir)/parse.y $(srcdir)/tools/generate-eventids1.rb ids1
|
|
|
|
$(RUBY) $(srcdir)/tools/generate-eventids1.rb ids1 > $@
|
2004-09-12 13:34:30 -04:00
|
|
|
|
2004-09-14 07:27:36 -04:00
|
|
|
ids1: $(srcdir)/tools/list-parse-event-ids.rb $(hdrdir)/parse.y
|
|
|
|
$(RUBY) $(srcdir)/tools/list-parse-event-ids.rb -a $(hdrdir)/parse.y > $@
|
2004-09-12 13:34:30 -04:00
|
|
|
|
2004-09-14 07:27:36 -04:00
|
|
|
ids2: $(srcdir)/tools/list-scan-event-ids.rb $(srcdir)/eventids2.c
|
|
|
|
$(RUBY) $(srcdir)/tools/list-scan-event-ids.rb -a $(srcdir)/eventids2.c > $@
|
2004-09-23 06:49:11 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Entries for only ripper developpers: DO NOT USE
|
|
|
|
#
|
|
|
|
|
2005-09-19 02:12:35 -04:00
|
|
|
# [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
|
|
|
|
|
2004-09-23 06:49:11 -04:00
|
|
|
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 > $@
|