I am using Borland C++ Builder version 6 and would like to add some method of invoking a batch file after a project build has been performed. There is no direct support in the IDE to do this but I have read that it is possible to modify project makefiles to perform such actions. After much digging around on the internet and experimentation i have still not managed to do get this to work.
The batch file in this case will simply invoke an exe file but may also be required to copy certain build outputs files to system directories for example.
If it makes any difference I am running BCB6 on a Windows 7 x64 laptop.
Regards FarmerJo
You can run the
bpr2mak.exe
utility, passing your project *.bprNow you have a Project.mak file and running
make.exe
:you'll build the Project.
Don't change
make -f Project.mak
withmake Project.mak
or make will try to build targetProject.mak
ofMakefile
(you can renameProject.mak
inMakefile
and simply callmake
, if you prefer).Assembling everything in a batch file:
build.bat
Of course you can add your additional commands under the appropriate target of the Makefile, but this way you'll have to manually edit the file after every execution of
bpr2mak
.