summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 17:50:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-13 17:50:33 +0000
commit499fef3e53ed230ddf1126eb881f579f4e64014f (patch)
tree1bcba3174cac9a41bbfcc33c3686c1f2b569ec10 /common.mk
parent1a6e152000eb036b28ebe26a4b89f03d9300d455 (diff)
* common.mk (parse.c): dependency also needs vpath.
* common.mk (node_name.inc, prelude.c): VPATH in nmake does not work for targets of explicit rules. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/common.mk b/common.mk
index db2288c5b7..7a85fb980a 100644
--- a/common.mk
+++ b/common.mk
@@ -349,9 +349,9 @@ $(RBCONFIG): $(srcdir)/mkconfig.rb config.status $(PREP)
PHONY:
-{$(VPATH)}parse.c: parse.y
+{$(VPATH)}parse.c: {$(VPATH)}parse.y
-{$(VPATH)}.y.c:
+{$(srcdir)}.y.c:
$(YACC) $(YFLAGS) -o y.tab.c $<
sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
@$(RM) y.tab.c
@@ -633,10 +633,10 @@ vm.inc: $(srcdir)/template/vm.inc.tmpl
incs: $(INSNS) node_name.inc
-{$(VPATH)}node_name.inc: {$(VPATH)}node.h
+node_name.inc: {$(VPATH)}node.h
$(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@
-{$(VPATH)}prelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb
+prelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb
$(BASERUBY) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@
ext_prelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $(srcdir)/gem_prelude.rb $(RBCONFIG)