2005-09-24 01:37:38 +04:00
|
|
|
GEN = $(srcdir)/tools/generate.rb
|
2007-06-10 07:06:15 +04:00
|
|
|
SRC1 = $(top_srcdir)/parse.y
|
2005-09-24 01:37:38 +04:00
|
|
|
SRC2 = $(srcdir)/eventids2.c
|
2005-10-08 13:58:25 +04:00
|
|
|
BISON = bison
|
2005-09-23 15:10:59 +04:00
|
|
|
|
2009-02-24 11:58:10 +03:00
|
|
|
.SUFFIXES: .y
|
|
|
|
|
2005-09-24 01:37:38 +04:00
|
|
|
src: ripper.c eventids1.c eventids2table.c
|
|
|
|
|
2009-01-27 07:02:53 +03:00
|
|
|
ripper.o: ripper.c lex.c eventids1.c eventids2.c eventids2table.c \
|
2008-09-13 19:43:56 +04:00
|
|
|
$(hdrdir)/ruby/ruby.h $(arch_hdrdir)/ruby/config.h \
|
|
|
|
$(hdrdir)/ruby/defines.h $(hdrdir)/ruby/intern.h \
|
|
|
|
$(hdrdir)/ruby/encoding.h $(hdrdir)/missing.h \
|
* include/ruby/node.h, node.h: move node.h from include path.
This change stop to install node.h beacuase of saving ABI
(node.h will be changed. Extensions should not depends on
this file).
* blockinlining.c, class.c, compile.c, debug.h, enum.c,
gc.c, iseq.c, parse.y, ruby.c, signal.c, variable.c,
vm.c, vm_core.h, vm_dump.c: ditto.
* ext/ripper/depend: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 23:52:31 +04:00
|
|
|
$(hdrdir)/../node.h $(hdrdir)/oniguruma.h \
|
2008-09-13 19:43:56 +04:00
|
|
|
$(hdrdir)/regex.h $(hdrdir)/st.h $(hdrdir)/util.h
|
2004-09-12 21:34:30 +04:00
|
|
|
|
2005-06-02 18:43:10 +04:00
|
|
|
.y.c:
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) compiling compiler $<
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(BISON) -t -v -oy.tab.c $<
|
|
|
|
$(Q) sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
|
2007-11-13 15:41:41 +03:00
|
|
|
@$(RM) y.tab.c
|
2004-09-12 21:34:30 +04:00
|
|
|
|
2005-10-20 02:55:51 +04:00
|
|
|
all: check
|
|
|
|
static: check
|
2005-10-08 13:58:25 +04:00
|
|
|
|
2007-06-10 07:06:15 +04:00
|
|
|
ripper.y: $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) extracting $@ from $<
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(RUBY) $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y --output=$@
|
2004-09-23 14:49:11 +04:00
|
|
|
|
2005-09-24 01:37:38 +04:00
|
|
|
check: $(GEN) $(SRC1) $(SRC2)
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) checking $(SRC1) and $(SRC2)
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(RUBY) $(GEN) --mode=check --ids1src=$(SRC1) --ids2src=$(SRC2)
|
2005-09-24 01:37:38 +04:00
|
|
|
|
|
|
|
eventids1.c: $(srcdir)/tools/generate.rb $(SRC1)
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) generating $@ from $(SRC1)
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(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)
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) generating $@ from $(SRC2)
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(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
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) preprocessing $<
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(CC) -E $(CPPFLAGS) ripper.c | $(RUBY) $(srcdir)/tools/strip.rb > $@
|