2005-09-24 01:37:38 +04:00
|
|
|
GEN = $(srcdir)/tools/generate.rb
|
|
|
|
SRC1 = $(hdrdir)/parse.y
|
|
|
|
SRC2 = $(srcdir)/eventids2.c
|
2005-10-08 13:58:25 +04:00
|
|
|
BISON = bison
|
2005-09-23 15:10:59 +04:00
|
|
|
|
2005-09-24 01:37:38 +04:00
|
|
|
src: ripper.c eventids1.c eventids2table.c
|
|
|
|
|
|
|
|
ripper.o: ripper.c $(hdrdir)/lex.c eventids1.c $(srcdir)/eventids2.c eventids2table.c
|
2004-09-12 21:34:30 +04:00
|
|
|
|
2005-06-02 18:43:10 +04:00
|
|
|
.y.c:
|
2005-10-08 13:58:25 +04:00
|
|
|
$(BISON) -t -v -o$@ $<
|
2004-09-12 21:34:30 +04:00
|
|
|
|
2005-10-08 13:58:25 +04:00
|
|
|
all static: check
|
|
|
|
|
|
|
|
ripper.y: $(srcdir)/tools/preproc.rb $(hdrdir)/parse.y
|
2005-09-23 02:08:47 +04:00
|
|
|
$(RUBY) $(srcdir)/tools/preproc.rb $(hdrdir)/parse.y --output=$@
|
2004-09-23 14:49:11 +04:00
|
|
|
|
2005-09-24 01: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 14:49:11 +04:00
|
|
|
|
2005-09-24 01:37:38 +04:00
|
|
|
eventids2table.c: $(srcdir)/tools/generate.rb $(SRC2)
|
|
|
|
$(RUBY) $(GEN) --mode=eventids2table --ids2src=$(SRC2) --output=$@
|
2005-09-19 10:12:35 +04:00
|
|
|
|
2005-09-23 00:58:10 +04:00
|
|
|
# Entries for Ripper maintainer
|
2004-09-23 14:49:11 +04:00
|
|
|
|
|
|
|
preproc: ripper.E
|
|
|
|
ripper.E: ripper.c
|
|
|
|
$(CC) -E $(CPPFLAGS) ripper.c | $(RUBY) $(srcdir)/tools/strip.rb > $@
|