[Qt-interest] QMake...

BRM bm_witness at yahoo.com
Wed Mar 24 01:28:23 CET 2010


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





More information about the Qt-interest-old mailing list