vcmake.bat
changeset 587 730b28985ae4
parent 239 b7ad2c45f826
child 618 59999670ec90
equal deleted inserted replaced
586:c8bd96ebb9ae 587:730b28985ae4
     8     pushd ..\..\rules
     8     pushd ..\..\rules
     9     call vcsetup.bat
     9     call vcsetup.bat
    10     popd
    10     popd
    11 )
    11 )
    12 @SET DEFINES=
    12 @SET DEFINES=
    13 @REM Kludge got Mercurial, cannot be implemented in Borland make
    13 
    14 @FOR /F "tokens=*" %%i in ('hg root') do SET HGROOT=%%i
       
    15 @IF "%HGROOT%" NEQ "" SET DEFINES=%DEFINES% "-DHGROOT=%HGROOT%"
       
    16 make.exe -N -f bc.mak -DUSEVC=1 %DEFINES% %*
    14 make.exe -N -f bc.mak -DUSEVC=1 %DEFINES% %*
    17 
    15 
    18 
    16 
    19 
    17 
       
    18 @if not exist analyzer goto skip_stx_goodies_petitparser_analyzer
    20 @echo "***********************************"
    19 @echo "***********************************"
    21 @echo "Buildung stx/goodies/petitparser/analyzer
    20 @echo "Building stx/goodies/petitparser/analyzer"
    22 @echo "***********************************"
    21 @echo "***********************************"
    23 @cd analyzer
    22 @pushd analyzer
    24 @call vcmake %1 %2
    23 @call vcmake %1 %2 || exit /b "%errorlevel%"
    25 @cd ..
    24 @popd
       
    25 @goto done_stx_goodies_petitparser_analyzer
       
    26 :skip_stx_goodies_petitparser_analyzer
       
    27 @echo "###################################"
       
    28 @echo "FOLDER MISSING: stx/goodies/petitparser/analyzer"
       
    29 @echo "###################################"
       
    30 exit /b 1
       
    31 :done_stx_goodies_petitparser_analyzer
    26 
    32 
       
    33 @if not exist tests goto skip_stx_goodies_petitparser_tests
    27 @echo "***********************************"
    34 @echo "***********************************"
    28 @echo "Buildung stx/goodies/petitparser/tests
    35 @echo "Building stx/goodies/petitparser/tests"
    29 @echo "***********************************"
    36 @echo "***********************************"
    30 @cd tests
    37 @pushd tests
    31 @call vcmake %1 %2
    38 @call vcmake %1 %2 || exit /b "%errorlevel%"
    32 @cd ..
    39 @popd
       
    40 @goto done_stx_goodies_petitparser_tests
       
    41 :skip_stx_goodies_petitparser_tests
       
    42 @echo "###################################"
       
    43 @echo "FOLDER MISSING: stx/goodies/petitparser/tests"
       
    44 @echo "###################################"
       
    45 exit /b 1
       
    46 :done_stx_goodies_petitparser_tests
    33 
    47 
    34 
    48