Improve make.bat final message
[blender.git] / make.bat
index 06137f58ae1960fe4d294fff90fa41c120b4bd92..8c41308eb0a48128f2e4cf7b2082e2edc71a086d 100644 (file)
--- a/make.bat
+++ b/make.bat
@@ -48,7 +48,7 @@ if NOT EXIST %BLENDER_DIR%..\lib\nul (
 if NOT "%1" == "" (
 
        REM Help Message
-       if "%1" == "--help" (
+       if "%1" == "help" (
                echo.
                echo Convenience targets
                echo - debug
@@ -103,7 +103,9 @@ if NOT "%1" == "" (
                        /target:clean ^
                        /property:Configuration=%BUILD_TYPE% ^
                        /verbosity:minimal
-               echo Cleaned "%BUILD_DIR%"
+               if %ERRORLEVEL% NEQ 0 (
+                       echo Cleaned "%BUILD_DIR%"
+               )
                goto EOF
        ) else (
                echo Command "%1" unknown, aborting!
@@ -125,15 +127,18 @@ if NOT EXIST %BUILD_DIR%\nul (
        mkdir %BUILD_DIR%
 )
 
-cmake ^
-       %BUILD_CMAKE_ARGS% ^
-       -H%BLENDER_DIR% ^
-       -B%BUILD_DIR% ^
-       %BUILD_CMAKE_ARGS%
+REM Only configure on first run
+if NOT EXIST %BUILD_DIR%\Blender.sln (
+       cmake ^
+               %BUILD_CMAKE_ARGS% ^
+               -H%BLENDER_DIR% ^
+               -B%BUILD_DIR% ^
+               %BUILD_CMAKE_ARGS%
 
-if %ERRORLEVEL% NEQ 0 (
-       echo "Configuration Failed"
-       goto EOF
+       if %ERRORLEVEL% NEQ 0 (
+               echo "Configuration Failed"
+               goto EOF
+       )
 )
 
 msbuild ^
@@ -154,7 +159,10 @@ msbuild ^
        /verbosity:minimal
 
 echo.
-echo Your build is complete at: "%BUILD_DIR%\bin\%BUILD_TYPE%"
+echo At any point you can optionally modify your build configuration by editing:
+echo "%BUILD_DIR%\CMakeCache.txt", then run "make" again to build with the changes applied.
+echo.
+echo Blender successfully built, run from: "%BUILD_DIR%\bin\%BUILD_TYPE%"
 echo.
 
 :EOF