Hi!
I like to keep my output file(s), whether executable or library, in a
separate directory from my objects and other intermediate build files,
if any. However, the default makefile which DB generates only creates
OBJECTPATH (assuming OUTPUTPATH is identical). So, if I want a
structure like:
Output path: DebugMinGW\bin
Objects path: DebugMinGW\build
and specify them as such in the Configurations dialog in DB, the build
goes fine until time to make the exe or lib, then it croaks because
DebugMinGW\bin does not exist!:-(
To get around this, I add an 'all' target at the top of the makefile
and and OPdir target at the bottom:
---
all: OPdir
### Begin DialogBlocks generated body
.
.
.
### End DialogBlocks generated body
OPdir:
-if not exist $(OUTPUTPATH) mkdir $(OUTPUTPATH)
---
and everything is right with the world once again!;)
NOTE: if the email has frogged up the formatting (as usual) note that
there is, of course, a tab at the beginning of the line "-if not exist"!;)
fyi,
Dave S.
.