Files
skele/build.bat
T
anth64 fb2ea1a1fe fix: build.bat builds release before install
Matches build.sh: running install without release already built
previously just failed or installed stale artifacts.
2026-11-10 18:59:27 +01:00

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 %*
)