summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-31 13:01:51 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-31 13:01:51 +0000
commit6749139822e8d33c30f93c29d7917db5d2cced9c (patch)
tree9ec257f6c792b277ae3e1467f56b7da68d494017 /common.mk
parent6cf27fcf3b9b8734854ce6a07c6866ed7a4acb18 (diff)
merges r22964 from trunk into ruby_1_9_1.
-- * common.mk (.y.c): use SRC_FILE which contains slashes instead of backslashes. [ruby-core:22891] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index 2d9f59f152..0345274e10 100644
--- a/common.mk
+++ b/common.mk
@@ -422,7 +422,7 @@ PHONY:
parse.h {$(VPATH)}parse.h: {$(VPATH)}parse.c
{$(srcdir)}.y.c:
- $(YACC) -d $(YFLAGS) -o y.tab.c $(<:\=/)
+ $(YACC) -d $(YFLAGS) -o y.tab.c $(SRC_FILE)
sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new
@$(MV) $@.new $@
sed -e "/^#line.*y\.tab\.h/d;/^#line.*parse\.y/d" y.tab.h > $(@:.c=.h).new