From 888fe5ac9d69c3ea839b5fc34ed744b551e94cbf Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sat, 9 Jan 2010 13:49:54 +0200 Subject: [PATCH] Make release the default target in build.bat. --- build.bat | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build.bat b/build.bat index 034e3fdac..3cd110620 100644 --- a/build.bat +++ b/build.bat @@ -19,6 +19,10 @@ if NOT "%QMAKESPEC%" == "" ( set MAKE=nmake ) +if "%2" == "" set TARGET=release +if "%2" == "release" set TARGET=release +if "%2" == "debug" set TARGET=debug + if "%1" == "cppcheck" goto cppcheck if "%1" == "gui" goto gui if "%1" == "tests" goto tests @@ -26,14 +30,14 @@ goto help :cppcheck cd cli -qmake -config %2 +qmake -config %TARGET% %MAKE% cd .. goto end :gui cd gui -qmake -config %2 +qmake -config %TARGET% %MAKE% lrelease gui.pro cd .. @@ -41,7 +45,7 @@ goto end :tests cd test -qmake -config %2 +qmake -config %TARGET% %MAKE% cd .. goto end