build.bat: use pushd/popd which makes changing dirs easier
This commit is contained in:
parent
62a01ff5b4
commit
dcba21dedd
12
build.bat
12
build.bat
|
@ -38,26 +38,26 @@ if "%1" == "all" goto cppcheck
|
||||||
goto help
|
goto help
|
||||||
|
|
||||||
:cppcheck
|
:cppcheck
|
||||||
cd cli
|
pushd cli
|
||||||
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
|
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
|
||||||
%MAKE%
|
%MAKE%
|
||||||
cd ..
|
popd
|
||||||
if "%1" == "all" goto gui
|
if "%1" == "all" goto gui
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
:gui
|
:gui
|
||||||
cd gui
|
pushd gui
|
||||||
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
|
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
|
||||||
%MAKE%
|
%MAKE%
|
||||||
lrelease gui.pro
|
lrelease gui.pro
|
||||||
cd ..
|
popd
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
:tests
|
:tests
|
||||||
cd test
|
pushd test
|
||||||
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
|
qmake -config %TARGET% HAVE_RULES=%HAVE_RULES%
|
||||||
%MAKE%
|
%MAKE%
|
||||||
cd ..
|
popd
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
:help
|
:help
|
||||||
|
|
Loading…
Reference in New Issue