summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-11 07:19:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-11 07:19:28 +0000
commit7554dd13468b105faec11f5d8ffef4499381c59d (patch)
treeb0024ff2934773ace47d21e9950cbbcd58e25e23 /common.mk
parent2db98d937aa31ae832896e55b3293eea2c9204f3 (diff)
* Makefile.in, */Makefile.sub (CP, MV): added.
* common.mk (.y.c): not discard the old target until successfully created. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index 543088bb82..4fce91be38 100644
--- a/common.mk
+++ b/common.mk
@@ -355,8 +355,9 @@ PHONY:
{$(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
+ sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new
+ @$(RM) $@ y.tab.c
+ @$(MV) $@.new $@
acosh.$(OBJEXT): {$(VPATH)}acosh.c
alloca.$(OBJEXT): {$(VPATH)}alloca.c