Matches build.sh: running install without release already built previously just failed or installed stale artifacts.
23 lines
325 B
Batchfile
23 lines
325 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set HAS_INSTALL=0
|
|
for %%a in (%*) do (
|
|
if "%%a"=="install" set HAS_INSTALL=1
|
|
)
|
|
|
|
if "%HAS_INSTALL%"=="1" (
|
|
make -f gmake.mk release
|
|
if errorlevel 1 exit /b 1
|
|
)
|
|
|
|
if "%1"=="run" (
|
|
if "%2"=="" (
|
|
make -f gmake.mk run MODE=debug
|
|
) else (
|
|
make -f gmake.mk run MODE=%2
|
|
)
|
|
) else (
|
|
make -f gmake.mk %*
|
|
)
|