Make CONFIG+=GNUmake respect shadow builds
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>
Tue, 11 Oct 2011 18:27:22 +0000 (20:27 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 11 Oct 2011 19:00:07 +0000 (21:00 +0200)
commiteba17baaed035e1e0848c71b485e4fede1ad398f
tree11af962168a829b3ca06ed035871606cdc4b99d8
parent82d897febfa948a011f194bd7c4255c42fa8b780
Make CONFIG+=GNUmake respect shadow builds

Previously we were generating include lines based on the relative path of
the source file, which resulted in the .d files being placed in the source
dir as well. We now expect the .d files to live in the output dir, but keep
the dependency from the .d file to the original source file.

Before:

   .deps/%.d: %.cpp
   -include .deps/../../src/foo.d

After:

   .deps/%.d: ../../src/%.cpp
   -include .deps/foo.d

Change-Id: I749adeb671cf8424f0849521c5bb1489eb3e76d5
Reviewed-on: http://codereview.qt-project.org/6455
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
qmake/generators/unix/unixmake2.cpp