From cfaf3d9a1aee75a51f63bda5ff447da2bfc4234f Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 25 Aug 2007 01:20:30 +0000 Subject: [PATCH] * common.mk (prelude.o): depends on vm_core.h now. * common.mk (prelude.c): depends on tool/compile_prelude.rb too. * common.mk (prereq): updates all auto-generated sources. * tool/compile_prelude.rb: separated dynamic and static portions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++++++++ common.mk | 8 +++++--- tool/compile_prelude.rb | 13 ++++++++----- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index ae163edd20..e37624dbf8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Sat Aug 25 10:20:28 2007 Nobuyoshi Nakada + + * common.mk (prelude.o): depends on vm_core.h now. + + * common.mk (prelude.c): depends on tool/compile_prelude.rb too. + + * common.mk (prereq): updates all auto-generated sources. + + * tool/compile_prelude.rb: separated dynamic and static portions. + Sat Aug 25 10:05:17 2007 Koichi Sasada * prelude.rb: add Thread.exclusive. This class method diff --git a/common.mk b/common.mk index 742223fa7f..75c649a75f 100644 --- a/common.mk +++ b/common.mk @@ -589,7 +589,7 @@ blockinlining.$(OBJEXT): {$(VPATH)}blockinlining.c \ {$(VPATH)}debug.h {$(VPATH)}vm_opts.h \ {$(VPATH)}thread_$(THREAD_MODEL).h id.$(OBJEXT): {$(VPATH)}id.c {$(VPATH)}ruby.h -prelude.$(OBJEXT): {$(VPATH)}prelude.c {$(VPATH)}ruby.h +prelude.$(OBJEXT): {$(VPATH)}prelude.c {$(VPATH)}ruby.h {$(VPATH)}vm_core.h MATZRUBY = $(MATZRUBYDIR)ruby @@ -623,8 +623,10 @@ incs: $(INSNS) node_name.inc node_name.inc: {$(VPATH)}node.h $(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@ -prelude.c: {$(VPATH)}prelude.rb - $(BASERUBY) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb prelude.c +prelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb + $(BASERUBY) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@ + +prereq: incs prelude.c docs: $(BASERUBY) -I$(srcdir) $(srcdir)/tool/makedocs.rb $(INSNS2VMOPT) diff --git a/tool/compile_prelude.rb b/tool/compile_prelude.rb index cdf6861794..1012d1fbc2 100644 --- a/tool/compile_prelude.rb +++ b/tool/compile_prelude.rb @@ -1,26 +1,29 @@ prelude, outfile = *ARGV -lines = [] lines = File.readlines(prelude).map{|line| line.dump } open(outfile, 'w'){|f| -f.puts <