class: PPParserResource draft
authorClaus Gittinger <cg@exept.de>
Mon, 02 Jul 2018 07:46:39 +0200
changeset 586 c8bd96ebb9ae
parent 585 53f5ccdfacc6
child 587 730b28985ae4
class: PPParserResource test stuff moved
bmake.bat
--- a/bmake.bat	Mon Jul 02 07:46:37 2018 +0200
+++ b/bmake.bat	Mon Jul 02 07:46:39 2018 +0200
@@ -4,23 +4,39 @@
 @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%"
+
 make.exe -N -f bc.mak  %DEFINES% %*
 
-@echo "***********************************"
-@echo "Buildung stx/goodies/petitparser/analyzer
-@echo "***********************************"
-@cd analyzer
-@call bmake %1 %2
-@cd ..
-
-@echo "***********************************"
-@echo "Buildung stx/goodies/petitparser/tests
-@echo "***********************************"
-@cd tests
-@call bmake %1 %2
-@cd ..
 
 
+@if not exist analyzer goto skip_stx_goodies_petitparser_analyzer
+@echo "***********************************"
+@echo "Building stx/goodies/petitparser/analyzer"
+@echo "***********************************"
+@pushd analyzer
+@call bmake %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 bmake %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
+
+