summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-04 11:53:25 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-04 11:53:25 +0000
commit54ba01fe95d1e6e1da42cf13cdb227da7ca23bb5 (patch)
treefaf42ed8f6f9191be326171f0d58ab21efb03898
parent75b69799ddadb24d90a2ad616acfd7f5d8dc26f1 (diff)
merges r21284 from trunk into ruby_1_9_1.
* common.mk, Makefile.in, win32/Makefile.sub (INSNS): move the macro definition from common.mk to {Makefile.in,win32/Makefile.sub}. [ruby-dev:37678] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog8
-rw-r--r--Makefile.in3
-rw-r--r--common.mk3
-rw-r--r--win32/Makefile.sub7
4 files changed, 15 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index e26b6697bd..924bf025d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Jan 3 22:24:36 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk, Makefile.in, win32/Makefile.sub (INSNS): move the macro
+ definition from common.mk to {Makefile.in,win32/Makefile.sub}.
+ [ruby-dev:37678]
+
Sat Jan 3 15:30:09 2009 NARUSE, Yui <naruse@ruby-lang.org>
* enc/trans/chinese.trans: added for transcoding EUC-CN and GB12345.
@@ -13,7 +19,7 @@ Sat Jan 3 03:00:42 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* common.mk, Makefile.in, win32/Makefile.sub ($(INSNS), node_name.inc,
known_errors.inc, miniprelude.c, newline.c): move rules from common.mk
- to {Makefile.in,win32/Makefile.sub) for nmake.
+ to {Makefile.in,win32/Makefile.sub} for nmake.
[ruby-core:20993]
Fri Jan 2 23:51:41 2009 Yusuke Endoh <mame@tsg.ne.jp>
diff --git a/Makefile.in b/Makefile.in
index d0762c9e15..6c0b9dce07 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -265,6 +265,9 @@ test-rubyspec:
@if [ ! -d $(srcdir)/spec/rubyspec ]; then echo No rubyspec here. make update-rubyspec first.; exit 1; fi
$(RUNRUBY) $(srcdir)/spec/mspec/bin/mspec -B $(srcdir)/spec/default.mspec $(MSPECOPT)
+INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
+ vmtc.inc vm.inc
+
$(INSNS):
@$(RM) $(PROGRAM)
$(BASERUBY) -Ks $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) $@
diff --git a/common.mk b/common.mk
index cc66acb1e5..6871b49f3b 100644
--- a/common.mk
+++ b/common.mk
@@ -605,9 +605,6 @@ newline.$(OBJEXT): {$(VPATH)}newline.c {$(VPATH)}defines.h \
{$(VPATH)}intern.h {$(VPATH)}missing.h {$(VPATH)}st.h \
{$(VPATH)}transcode_data.h {$(VPATH)}ruby.h {$(VPATH)}config.h
-INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
- vmtc.inc vm.inc
-
INSNS2VMOPT = --srcdir="$(srcdir)"
$(INSNS): $(srcdir)/insns.def {$(VPATH)}vm_opts.h $(srcdir)/defs/opt_operand.def $(srcdir)/defs/opt_insn_unif.def
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index d2efe4c163..e25a150e20 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -278,6 +278,9 @@ all: $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(srcdir)/common.mk
ruby: $(PROGRAM)
rubyw: $(WPROGRAM)
+INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
+ vmtc.inc vm.inc
+
!include $(srcdir)/common.mk
$(MKFILES): $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(win_srcdir)/configure.bat $(win_srcdir)/setup.mak $(win_srcdir)/enc-setup.mak $(srcdir)/enc/Makefile.in
@@ -759,8 +762,8 @@ ext/extinit.obj: ext/extinit.c $(SETUP)
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c ext/extinit.c
$(INSNS):
- @if exist $(srcdir:/=\)\insns.inc ( \
- @for %I in ($(INSNS)) do @copy $(srcdir:/=\)\%~nxI %I \
+ @if exist $(srcdir:/=\)\$(@F) ( \
+ copy $(srcdir:/=\)\$(@F) $@ \
) else ( \
@$(RM) $(PROGRAM) \
$(BASERUBY) -Ks $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) $@ \