radare2/make.bat

23 lines
464 B
Batchfile

:: Build (and eventually install) r2 for windows
@echo off
ninja --version > NUL 2> NUL
if %ERRORLEVEL% == 0 (
if EXIST b (
ninja -C b
if %ERRORLEVEL% == 0 (
echo Installing r2 in %CD%\prefix
set DESTDIR=%CD%\prefix
ninja -C b install > NUL
copy /y %DESTDIR%\bin\radare2.exe %DESTDIR%\bin\r2.exe
) else (
exit /b 1
)
) else (
echo Please run configure before make
exit /b 1
)
) else (
echo Please run preconfigure
exit /b 1
)