class: PPParserResource
authorClaus Gittinger <cg@exept.de>
Mon, 02 Jul 2018 07:46:43 +0200
changeset 588 2c0295b3fcae
parent 587 730b28985ae4
child 589 3c5131d6e4f7
class: PPParserResource test stuff moved
mingwmake.bat
--- a/mingwmake.bat	Mon Jul 02 07:46:41 2018 +0200
+++ b/mingwmake.bat	Mon Jul 02 07:46:43 2018 +0200
@@ -4,27 +4,42 @@
 @REM do not edit - automatically generated from ProjectDefinition
 @REM -------
 @SET DEFINES=
-@REM Kludge got Mercurial, cannot be implemented in Borland make
-@FOR /F "tokens=*" %%i in ('hg root') do SET HGROOT=%%i
-@IF "%HGROOT%" NEQ "" SET DEFINES=%DEFINES% "-DHGROOT=%HGROOT%"
 
 @pushd ..\..\rules
 @call find_mingw.bat
 @popd
 make.exe -N -f bc.mak %DEFINES% %USEMINGW_ARG% %*
 
-@echo "***********************************"
-@echo "Buildung stx/goodies/petitparser/analyzer
-@echo "***********************************"
-@cd analyzer
-@call mingwmake %1 %2
-@cd ..
-
-@echo "***********************************"
-@echo "Buildung stx/goodies/petitparser/tests
-@echo "***********************************"
-@cd tests
-@call mingwmake %1 %2
-@cd ..
 
 
+@if not exist analyzer goto skip_stx_goodies_petitparser_analyzer
+@echo "***********************************"
+@echo "Building stx/goodies/petitparser/analyzer"
+@echo "***********************************"
+@pushd analyzer
+@call mingwmake %1 %2 || exit /b "%errorlevel%"
+@popd
+@goto done_stx_goodies_petitparser_analyzer
+:skip_stx_goodies_petitparser_analyzer
+@echo "###################################"
+@echo "FOLDER MISSING: stx/goodies/petitparser/analyzer"
+@echo "###################################"
+exit /b 1
+:done_stx_goodies_petitparser_analyzer
+
+@if not exist tests goto skip_stx_goodies_petitparser_tests
+@echo "***********************************"
+@echo "Building stx/goodies/petitparser/tests"
+@echo "***********************************"
+@pushd tests
+@call mingwmake %1 %2 || exit /b "%errorlevel%"
+@popd
+@goto done_stx_goodies_petitparser_tests
+:skip_stx_goodies_petitparser_tests
+@echo "###################################"
+@echo "FOLDER MISSING: stx/goodies/petitparser/tests"
+@echo "###################################"
+exit /b 1
+:done_stx_goodies_petitparser_tests
+
+