Introduce $$QTC_PREFIX

'make install' now installs to $(INSTALL_ROOT)$$QTC_PREFIX/...

This is used for giving the contents of the 7zips an additional prefix.
(previously done by doing an additional copying step in bindistHelper).
QTC_PREFIX can also be used to give Qt Creator a different install path
at qmake time, and defaults to /usr/local on Linux.
On Windows and Mac there is no default for QTC_PREFIX.

Usage: qmake -r QTC_PREFIX=/qtcreator-2.6.0 && make &&
INSTALL_ROOT=/tmp/creator-dist make install

Change-Id: Id30781e14bfdde52531800f22b22e39f0459e806
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
Daniel Molkentin
2012-09-03 18:24:02 +02:00
committed by Eike Ziller
parent 4e4580d4c2
commit 745cb4b7ec
22 changed files with 38 additions and 117 deletions

View File

@@ -6,7 +6,7 @@ SOURCES += main.cpp
DESTDIR=../../../bin
target.path=/bin
target.path=$$QTC_PREFIX/bin
INSTALLS+=target
include(../../../qtcreator.pri)