diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-14 10:31:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-14 10:31:05 +0000 |
commit | f7ef047f8e3e271e8defa0065959416a188a8fd4 (patch) | |
tree | cb77605579ddfd5320fd66154505e48c4a06bb18 /ext | |
parent | 677751e1bcd6b08496c5cc734ef8b755e1f47316 (diff) | |
download | ruby-f7ef047f8e3e271e8defa0065959416a188a8fd4.tar.gz |
VPATH for ripper
* common.mk (ripper.c): pass the build directory path for id.h
which may be generated there.
* ext/ripper/depend (ripper.y): search the top build directory and
the top source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ripper/depend | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/ripper/depend b/ext/ripper/depend index d4f0a449d5..5d3bce4ec3 100644 --- a/ext/ripper/depend +++ b/ext/ripper/depend @@ -20,7 +20,8 @@ static: check ripper.y: $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y $(ECHO) extracting $@ from $(top_srcdir)/parse.y - $(Q) $(RUBY) $(top_srcdir)/tool/id2token.rb --path-separator=.$(PATH_SEPARATOR)./ --vpath=$(VPATH) id.h $(top_srcdir)/parse.y > ripper.tmp.y + $(Q) $(RUBY) $(top_srcdir)/tool/id2token.rb --path-separator=.$(PATH_SEPARATOR)./ \ + --vpath=$(VPATH)$(PATH_SEPARATOR)$(top_srcdir) id.h $(top_srcdir)/parse.y > ripper.tmp.y $(Q) $(RUBY) $(srcdir)/tools/preproc.rb ripper.tmp.y --output=$@ $(Q) $(RM) ripper.tmp.y |