VS 2005 - Erase Directory on Clean

VS 2005 - Erase Directory on Clean

am 27.11.2007 17:49:27 von christopher

How can I make a vc++ project erase its $(OutDir) upon using the clean
command?

I tryed Properties->Configuration Properties->General->Extensions to
Delete
on Clean
Add $(ObjDir)

And it didn't work. Of course I know it is asking for extentions and
not a
path, but I thought I'd give it a shot.

I also tryed individual extensions that appear in the $(OutDir) and
that
didn't work either.

It seems it only cleans extensions in the $(IntDir) and the $
(TargetPath)

Is there a work around aside from adding a bash script to pre-build
events?
I hate doing that as it makes the clean command kinda worthless...

The reason I am wanting to do this, is that I've altered my directory
stucture to put the outfile in Debug/lib, copy headers to Debug/
Include, and
set the IntDir to Debug/Obj. and I pretty much want to blow away the
whole
Debug folder on a clean.

Thanks.