* common.mk (.y.h): split from .y.c rule to manage dependency on
  parse.h.  [ruby-core:46741] [Bug #6789]
* common.mk (id.h): keep old file unless changed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-08-08 13:45:41 +00:00
Родитель dcfaf3e277
Коммит 22e145141b
2 изменённых файлов: 14 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,10 @@
Wed Aug 8 22:45:38 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (.y.h): split from .y.c rule to manage dependency on
parse.h. [ruby-core:46741] [Bug #6789]
* common.mk (id.h): keep old file unless changed.
Wed Aug 8 17:11:20 2012 Koichi Sasada <ko1@atdot.net>
* compile.c (ADD_INSNL): make ADD_INSNSL as alias of ADD_INSN1.

Просмотреть файл

@ -565,6 +565,11 @@ parse.h {$(VPATH)}parse.h: {$(VPATH)}parse.c
$(Q)$(YACC) -d $(YFLAGS) -o y.tab.c $(SRC_FILE)
$(Q)sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new
$(Q)$(MV) $@.new $@
$(Q)$(RM) y.tab.c y.tab.h
{$(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)$(RM) y.tab.c y.tab.h
@ -686,7 +691,7 @@ parse.$(OBJEXT): {$(VPATH)}parse.c $(RUBY_H_INCLUDES) {$(VPATH)}node.h \
{$(VPATH)}regex.h {$(VPATH)}util.h {$(VPATH)}lex.c \
{$(VPATH)}defs/keywords {$(VPATH)}id.c {$(VPATH)}parse.y \
{$(VPATH)}parse.h \
{$(VPATH)}internal.h {$(VPATH)}id.h
{$(VPATH)}internal.h
proc.$(OBJEXT): {$(VPATH)}proc.c {$(VPATH)}eval_intern.h \
$(RUBY_H_INCLUDES) {$(VPATH)}gc.h $(VM_CORE_H_INCLUDES) \
{$(VPATH)}debug.h {$(VPATH)}internal.h {$(VPATH)}iseq.h
@ -842,7 +847,7 @@ insns: $(INSNS)
id.h: parse.h $(srcdir)/tool/generic_erb.rb $(srcdir)/template/id.h.tmpl
$(ECHO) generating $@
$(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb --output=$@ \
$(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb --if-change --output=$@ \
$(srcdir)/template/id.h.tmpl --vpath=$(VPATH) parse.h
node_name.inc: {$(VPATH)}node.h