summaryrefslogtreecommitdiffstats
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
commit0e775441a2baac4305165a6e6892337996978596 (patch)
tree2bcd67f28c8ef62cfe03022a3c8241e8950ec13e /common.mk
parent21c65063c392200bd72a3119e6e7f4675ca65292 (diff)
downloadruby-0e775441a2baac4305165a6e6892337996978596.tar.gz
ruby-0e775441a2baac4305165a6e6892337996978596.tar.xz
ruby-0e775441a2baac4305165a6e6892337996978596.zip
* common.mk (parse.{c,h}): creates in the dependency order.
git-svn-id: http://svn.ruby-lang.org/repos/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 66f134220..d18642cb6 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