2005-09-23 07:10:59 -04:00
|
|
|
src: ripper.c eventids1.c $(srcdir)/lib/ripper/core.rb
|
|
|
|
|
2005-09-22 16:58:10 -04:00
|
|
|
ripper.o: ripper.c eventids1.c $(srcdir)/eventids2.c $(hdrdir)/lex.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
|
|
|
|
2005-09-22 18:08:47 -04:00
|
|
|
ripper.y: $(srcdir)/tools/preproc.rb $(hdrdir)/parse.y
|
|
|
|
$(RUBY) $(srcdir)/tools/preproc.rb $(hdrdir)/parse.y --output=$@
|
2004-09-23 06:49:11 -04:00
|
|
|
|
2005-09-23 07:10:59 -04:00
|
|
|
$(srcdir)/lib/ripper/core.rb: $(srcdir)/tools/generate.rb $(srcdir)/lib/ripper/core.rb.in $(hdrdir)/parse.y $(srcdir)/eventids2.c
|
2005-09-22 16:58:10 -04:00
|
|
|
$(RUBY) $(srcdir)/tools/generate.rb --mode=ripper/core --template=$@.in --output=$@ --ids1src=$(hdrdir)/parse.y --ids2src=$(srcdir)/eventids2.c
|
2004-09-23 06:49:11 -04:00
|
|
|
|
2005-09-22 18:08:47 -04:00
|
|
|
eventids1.c: $(srcdir)/tools/generate.rb $(hdrdir)/parse.y
|
2005-09-22 17:12:11 -04:00
|
|
|
$(RUBY) $(srcdir)/tools/generate.rb --mode=eventids1 --ids1src=$(hdrdir)/parse.y --output=$@
|
2005-09-19 02:12:35 -04:00
|
|
|
|
2005-09-22 16:58:10 -04:00
|
|
|
# Entries for Ripper maintainer
|
2004-09-23 06:49:11 -04:00
|
|
|
|
|
|
|
preproc: ripper.E
|
|
|
|
ripper.E: ripper.c
|
|
|
|
$(CC) -E $(CPPFLAGS) ripper.c | $(RUBY) $(srcdir)/tools/strip.rb > $@
|