Skip to content

Commit

Permalink
Improved makewin
Browse files Browse the repository at this point in the history
Improved the Windows Build script so you can now force a complete rebuild with `makewin.bat remake <build environment>` (e.g. `makewin.bat remake MSVC` for Microsoft Visual C).
  • Loading branch information
dheadshot committed Oct 3, 2022
1 parent 151ece1 commit 8009b19
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion makewin.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@echo off
set FULLLIB=0
set REBUILD_ALL=0
if "%1"=="clean" goto clean
if "%1"=="tmp/qdinpm.o" goto qdinpm
if "%1"=="tmp\qdinpm.o" goto qdinpm
Expand All @@ -10,14 +11,19 @@ if "%1"=="libqdinp2.a" goto libqdinp2
if "%1"=="" goto default
if "%1"=="all" goto default
if "%1"=="/?" goto help
if "%1"=="remake" goto remake

:help
echo Use "%0 clean" to clean, otherwise use "%0 TargetFile CommandEnvironment" to make that target.
goto end

:remake
set REBUILD_ALL=1

:clean
del tmp\qdinpm.o
goto end
if NOT "%REBUILD_ALL%"=="1" goto end
goto default

:noenv
echo Error: specify a command environment in the second variable!
Expand Down

0 comments on commit 8009b19

Please sign in to comment.