From 923b55d35b560d11f13eea802a0f246a3c908ae6 Mon Sep 17 00:00:00 2001 From: usa Date: Sun, 28 Dec 2003 17:25:31 +0000 Subject: * instruby.rb: fix install directory if destdir and compile_dir are not in the same drive. * ext/extmk.rb: ditto. * win32/Makefile.sub, win32/README.win32, win32/configure.bat, win32/setup.mak: new configure scheme. use ``configure --prefix=dir'' instead of ``nmake DESTDIR=dir install''. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/README.win32 | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'win32/README.win32') diff --git a/win32/README.win32 b/win32/README.win32 index e7d589759c..dffe7c0808 100644 --- a/win32/README.win32 +++ b/win32/README.win32 @@ -6,11 +6,7 @@ (1) Visual C++ 5.0 or later. -(2) If you want to run `((%nmake clean%))' or `((%nmake distclean%))' - properly, you must install UNIX compatible `((%rm%))' command on - your ((|PATH|)) if you want to clean after compile. - -(3) Please set environment variable (({INCLUDE})), (({LIB})), (({PATH})) +(2) Please set environment variable (({INCLUDE})), (({LIB})), (({PATH})) to run required commands properly from the command line. Note: building ruby requires following commands. @@ -19,11 +15,18 @@ * lib * dumpbin +(3) If you want to build from CVS source, following commands are required. + * byacc + * sed + == How to compile and install (1) Execute win32\configure.bat on your build directory. You can specify the target platform as an argument. For example, run `((%configure i686-mswin32%))' + You can also specify the install directory. + For example, run `((%configure --prefix=%))' + Default of the install directory is /usr . (2) Change ((|RUBY_INSTALL_NAME|)) and ((|RUBY_SO_NAME|)) in (({Makefile})) if you want to change the name of the executable files. @@ -36,7 +39,7 @@ (5) Run `((%nmake test%))' -(6) Run `((%nmake DESTDIR= install%))' +(6) Run `((%nmake install%))' This command will create following directories and install files onto them. * \bin @@ -81,10 +84,10 @@ in Japanese, but you can download at least. C: cd \ruby - win32\configure + win32\configure --prefix=/usr/local nmake nmake test - nmake DESTDIR=/usr/local install + nmake install * Build on the relative directory from the ruby source directory. @@ -97,10 +100,10 @@ in Japanese, but you can download at least. cd \ruby mkdir mswin32 cd mswin32 - ..\win32\configure + ..\win32\configure --prefix=/usr/local nmake nmake test - nmake DESTDIR=/usr/local install + nmake install * Build on the different drive. @@ -111,10 +114,10 @@ in Japanese, but you can download at least. D: cd D:\build\ruby - C:\src\ruby\win32\configure + C:\src\ruby\win32\configure --prefix=C:/usr/local nmake nmake test - nmake DESTDIR=C:/usr/local install + nmake install == Bugs -- cgit v1.2.3