summaryrefslogtreecommitdiff
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-02 18:03:05 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-02 18:03:05 +0000
commit0d1e85ee4bf93b566b79a9c71c3809743e1cc7d8 (patch)
treec220cbc95602f737171f97f33ab2d9787debd7e6 /win32/Makefile.sub
parent1e516be7110a8f167b416d37380b8e579deec46c (diff)
* 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/trunk@21280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub36
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 \
+ )