2005-09-23 17:37:38 -04:00
|
|
|
GEN = $(srcdir)/tools/generate.rb
|
2007-06-09 23:06:15 -04:00
|
|
|
SRC1 = $(top_srcdir)/parse.y
|
2005-09-23 17:37:38 -04:00
|
|
|
SRC2 = $(srcdir)/eventids2.c
|
2005-10-08 05:58:25 -04:00
|
|
|
BISON = bison
|
2005-09-23 07:10:59 -04:00
|
|
|
|
2005-09-23 17:37:38 -04:00
|
|
|
src: ripper.c eventids1.c eventids2table.c
|
|
|
|
|
2007-06-09 23:06:15 -04:00
|
|
|
ripper.o: ripper.c lex.c eventids1.c eventids2.c eventids2table.c
|
2004-09-12 13:34:30 -04:00
|
|
|
|
2005-06-02 10:43:10 -04:00
|
|
|
.y.c:
|
2007-11-13 07:41:41 -05:00
|
|
|
$(BISON) -t -v -oy.tab.c $<
|
|
|
|
sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
|
|
|
|
@$(RM) y.tab.c
|
2004-09-12 13:34:30 -04:00
|
|
|
|
2005-10-19 18:55:51 -04:00
|
|
|
all: check
|
|
|
|
static: check
|
2005-10-08 05:58:25 -04:00
|
|
|
|
2007-06-09 23:06:15 -04:00
|
|
|
ripper.y: $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y
|
|
|
|
$(RUBY) $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y --output=$@
|
2004-09-23 06:49:11 -04:00
|
|
|
|
2005-09-23 17:37:38 -04:00
|
|
|
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=$@
|
2004-09-23 06:49:11 -04:00
|
|
|
|
2005-09-23 17:37:38 -04:00
|
|
|
eventids2table.c: $(srcdir)/tools/generate.rb $(SRC2)
|
|
|
|
$(RUBY) $(GEN) --mode=eventids2table --ids2src=$(SRC2) --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 > $@
|