- :: =====================================================================================
- :: file : make.bat
- :: author : *
- :: lamo : 17th january 2003, 21:30
- :: desc : this batch-file generates the project executables
- :: =====================================================================================
- @goto _INIT
- :_BUILD
- :: -------------------------------------------------------------------------------------
- :: MAKE PROJECT EXECUTABLES
- :: -------------------------------------------------------------------------------------
- :: "%2" is the fully qualified path of make.exe
- :: -------------------------------------------------------------------------------------
- %2make.exe -p -m -a -fmakefile.17-01-2003.d5e
- :: -------------------------------------------------------------------------------------
- :: MAKE.EXE
- :: -------------------------------------------------------------------------------------
- :: this tries to locate delphis make.exe for building the binaries from the makefile;
- :: btw, we have to exclude other make.exe-files, e.g. located in c++ bin-directories
- :: -------------------------------------------------------------------------------------
- goto _BYE
- :_INIT
- @echo off
- if "%1"=="--locate" goto _PREPARE_BUILD
- if "%1"=="--build" goto _BUILD
- make.bat --locate dcc32.exe
- :_PREPARE_BUILD
- if not exist %~dp$PATH:2make.exe goto _ERR_FILE_NOT_FOUND
- make.bat --build %~dp$PATH:2
- :_ERR_FILE_NOT_FOUND
- echo error: cannot find make.exe
- :_BYE