[Qt-interest] QMake...

Christopher Probst cprobst at ics.com
Wed Mar 24 10:48:30 CET 2010


Hello Ben,

I would add  the following to your pro file.

QMAKE_CLEAN += $$DESTDIR\*

or

QMAKE_CLEAN += $$DESTDIR\lib*


depending on what you want deleted on a make clean..

see

for more details see

http://doc.trolltech.com/4.5/qmake-variable-reference.html#qmake-clean

Thanks,
Christo


On 24 Mar 2010, at 00:28, BRM wrote:

> I have a number of projects that use Qmake; some have sub-projects  
> as dependencies.
> Each project is laid out as follows:
>
> <project dir>\
> <project dir>\src
> <project dir>\include
>
> Most all of the dependencies build into static libraries using  
> Qmake, and as such leave their binaries in the following:
>
> <project dir>\lib
> <project dir>\lib.debug
>
> This all works, the projects find their dependencies and link  
> without a problem.
>
> The problem is when a dependency fails to build, the previous build  
> is often still in the output location - even when I run 'make  
> distclean'; thus the full project links even when it should not.
>
> The output directory is specified as follow in the QMake file:
>
> CONFIG(debug,debug|release) {
>    DESTDIR = ../lib.debug
> } else {
>    DESTDIR = ../lib
> }
>
> Is there a way I can get it the QMake project to clean out the  
> DESTDIR location? At the very least when I run "make distclean",  
> though preferably on "make clean" too.
> Note: The project only needs to clean out what it puts in there  
> itself.
>
> TIA,
>
> Ben
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>




More information about the Qt-interest-old mailing list