summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-15 08:39:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-15 08:39:14 +0000
commitd6d2eed78ef765f321b33ebdd2bdd9901dd5a39f (patch)
tree2bcd67f28c8ef62cfe03022a3c8241e8950ec13e /common.mk
parentfa9a533d0baca7b4d6b582d3eb48ef3c5a2f7c84 (diff)
* common.mk (parse.{c,h}): creates in the dependency order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index 66f1342204..d18642cb6b 100644
--- a/common.mk
+++ b/common.mk
@@ -393,10 +393,10 @@ parse.h {$(VPATH)}parse.h: {$(VPATH)}parse.c
{$(srcdir)}.y.c:
$(YACC) -d $(YFLAGS) -o y.tab.c $(<:\\=/)
- sed -e "/^#/s!y\.tab\.h!$(@:.c=.h)!" y.tab.h > $(@:.c=.h).new
- @$(MV) $(@:.c=.h).new $(@:.c=.h)
sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new
@$(MV) $@.new $@
+ sed -e "/^#/s!y\.tab\.h!$(@:.c=.h)!" y.tab.h > $(@:.c=.h).new
+ @$(IFCHANGE) $(@:.c=.h) $(@:.c=.h).new
@$(RM) y.tab.c y.tab.h
acosh.$(OBJEXT): {$(VPATH)}acosh.c