Skip to content

Commit

Permalink
common.mk: update parse.h
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Aug 25, 2012
1 parent bcbc1f7 commit 4d887d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common.mk
Expand Up @@ -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 $@
Expand All @@ -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
Expand Down

0 comments on commit 4d887d8

Please sign in to comment.