diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-04 06:16:14 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-04 06:16:14 +0000 |
commit | ce35512187a2be43dea7aa1710e36c8fa4df24c2 (patch) | |
tree | 8804c91934da44ba45a4f655496f90f1d255e9be /win32 | |
parent | d2e44245ff93f4ff3aa60c28834594022dea5906 (diff) | |
download | ruby-ce35512187a2be43dea7aa1710e36c8fa4df24c2.tar.gz |
merges r21280 from trunk into ruby_1_9_1.
* 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.
[ruby-core:20993]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 0586c1ba36..d2efe4c163 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -757,3 +757,39 @@ dir.$(OBJEXT) win32.$(OBJEXT): {$(srcdir)}win32/dir.h 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 \ + ) else ( \ + @$(RM) $(PROGRAM) \ + $(BASERUBY) -Ks $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) $@ \ + ) + +node_name.inc: + @if exist $(srcdir:/=\)\$(@F) ( \ + copy $(srcdir:/=\)\$(@F) $@ \ + ) else ( \ + $(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@ \ + ) + +known_errors.inc: + @if exist $(srcdir:/=\)\$(@F) ( \ + copy $(srcdir:/=\)\$(@F) $@ \ + ) else ( \ + $(BASERUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/known_errors.inc.tmpl $(srcdir)/defs/known_errors.def \ + ) + +miniprelude.c: + @if exist $(srcdir:/=\)\$(@F) ( \ + copy $(srcdir:/=\)\$(@F) $@ \ + ) else ( \ + $(BASERUBY) -I$(srcdir) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@ \ + ) + +newline.c: + @if exist $(srcdir:/=\)\$(@F) ( \ + copy $(srcdir:/=\)\$(@F) $@ \ + ) else ( \ + $(BASERUBY) "$(srcdir)/tool/transcode-tblgen.rb" -vo newline.c $(srcdir)/enc/trans/newline.trans \ + ) |