summaryrefslogtreecommitdiff
path: root/make_win32.bat
diff options
context:
space:
mode:
Diffstat (limited to 'make_win32.bat')
-rw-r--r--make_win32.bat8
1 files changed, 5 insertions, 3 deletions
diff --git a/make_win32.bat b/make_win32.bat
index e628994..bd1a072 100644
--- a/make_win32.bat
+++ b/make_win32.bat
@@ -1,3 +1,5 @@
-cd src
-copy config.h.win32 config.h
-nmake -f Makefile.windows
+SET ONIG_DIR=%~dp0\src
+set THIS_DIR=%~dp0
+set BUILD_DIR=%cd%
+copy %ONIG_DIR%\config.h.win32 %BUILD_DIR%\config.h
+nmake -f %ONIG_DIR%\Makefile.windows %1