@echo off
echo build Styler/2 Warp 3 version
set debug=1
mode co80,102

rem if the flag file doesn't exist create it and touch all the sources
if exist @debug@ if exist @warp3@ goto build

if not exist @debug@ echo . > @debug@
if not exist @warp3@ echo . > @warp3@
for %%1 in (..\*.c) do touch %%1

goto build

:tryagain
echo.
echo Prememere un tasto qualsiasi per rieseguire NMAKE
echo Premerere Ctrl-C per terminare.
pause > nul

:build
cls
nmake -f warp3.mak -nologo
if errorlevel 1 goto tryagain
copy ..\..\warp3\smartwin.dll ..\..\warp3\install\smartwin.170
copy ..\..\warp3\styler20.dll ..\..\warp3\install\styler20.170
pause

