summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-25 07:20:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-25 07:20:31 +0000
commit4d887d8b71f3c52d3639a76af394f9ff7154668d (patch)
tree5b2da578d0b776835d8f9dd290ba92d05eee8d12 /common.mk
parentbcbc1f722c0ab7e26334c6fdafab502f4f021860 (diff)
common.mk: update parse.h
* common.mk (.y.h): update the header unconditionally git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/common.mk b/common.mk
index 763de08917..079c78a385 100644
--- a/common.mk
+++ b/common.mk
@@ -562,7 +562,7 @@ $(ENC_MK): $(srcdir)/enc/make_encmake.rb $(srcdir)/enc/Makefile.in $(srcdir)/enc
PHONY:
{$(VPATH)}parse.c: {$(VPATH)}parse.y $(srcdir)/tool/ytab.sed
-parse.h {$(VPATH)}parse.h: {$(VPATH)}parse.c
+{$(VPATH)}parse.h: {$(VPATH)}parse.c
{$(srcdir)}.y.c:
$(ECHO) generating $@
@@ -574,8 +574,7 @@ parse.h {$(VPATH)}parse.h: {$(VPATH)}parse.c
{$(srcdir)}.y.h:
$(ECHO) generating $@
$(Q)$(YACC) -d $(YFLAGS) -o y.tab.c $(SRC_FILE)
- $(Q)sed -e "/^#line.*y\.tab\.h/d;/^#line.*parse\.y/d" y.tab.h > $(@:.c=.h).new
- $(Q)$(IFCHANGE) $(@:.c=.h) $(@:.c=.h).new
+ $(Q)sed -e "/^#line.*y\.tab\.h/d;/^#line.*parse\.y/d" y.tab.h > $(@:.c=.h)
$(Q)$(RM) y.tab.c y.tab.h
acosh.$(OBJEXT): {$(VPATH)}acosh.c