summaryrefslogtreecommitdiff
path: root/ext/ripper
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-11 12:46:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-11 12:46:23 +0000
commitf2f7a7740a0c4542ae8dc8db393f184a7a6b2174 (patch)
treea130a4b5ad7654da59debfe6e1f7f20b88d55972 /ext/ripper
parent7ef29a9f5e6b0ac8e194e6bb81353c992aac5669 (diff)
* common.mk: hide long command lines by default. verbose-mode is
turned on by V=1 as before. http://jarp.does.notwork.org/diary/200605b.html#200605121 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper')
-rw-r--r--ext/ripper/depend13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/ripper/depend b/ext/ripper/depend
index 306a75c..9019a59 100644
--- a/ext/ripper/depend
+++ b/ext/ripper/depend
@@ -15,7 +15,10 @@ ripper.o: ripper.c lex.c eventids1.c eventids2.c eventids2table.c \
$(hdrdir)/regex.h $(hdrdir)/st.h $(hdrdir)/util.h
.y.c:
+ $(ECHO) compiling compiler $<
+ $(Q) \
$(BISON) -t -v -oy.tab.c $<
+ $(Q) \
sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
@$(RM) y.tab.c
@@ -23,19 +26,29 @@ all: check
static: check
ripper.y: $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y
+ $(ECHO) extracting $@ from $<
+ $(Q) \
$(RUBY) $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y --output=$@
check: $(GEN) $(SRC1) $(SRC2)
+ $(ECHO) checking $(SRC1) and $(SRC2)
+ $(Q) \
$(RUBY) $(GEN) --mode=check --ids1src=$(SRC1) --ids2src=$(SRC2)
eventids1.c: $(srcdir)/tools/generate.rb $(SRC1)
+ $(ECHO) generating $@ from $(SRC1)
+ $(Q) \
$(RUBY) $(GEN) --mode=eventids1 --ids1src=$(SRC1) --output=$@
eventids2table.c: $(srcdir)/tools/generate.rb $(SRC2)
+ $(ECHO) generating $@ from $(SRC2)
+ $(Q) \
$(RUBY) $(GEN) --mode=eventids2table --ids2src=$(SRC2) --output=$@
# Entries for Ripper maintainer
preproc: ripper.E
ripper.E: ripper.c
+ $(ECHO) preprocessing $<
+ $(Q) \
$(CC) -E $(CPPFLAGS) ripper.c | $(RUBY) $(srcdir)/tools/strip.rb > $@