build.bat: use pushd/popd which makes changing dirs easier

This commit is contained in:
XhmikosR 2012-09-05 16:07:35 +03:00 committed by PKEuS
parent 62a01ff5b4
commit dcba21dedd
1 changed files with 6 additions and 6 deletions

View File

@ -38,26 +38,26 @@ if "%1" == "all" goto cppcheck
goto help
:cppcheck
cd cli
pushd cli
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
%MAKE%
cd ..
popd
if "%1" == "all" goto gui
goto end
:gui
cd gui
pushd gui
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
%MAKE%
lrelease gui.pro
cd ..
popd
goto end
:tests
cd test
pushd test
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
%MAKE%
cd ..
popd
goto end
:help