Broken 'sudo make install' on Linux.

--HG--
branch : develop
This commit is contained in:
dismine 2014-11-20 22:13:05 +02:00
parent 1e2cd9acf0
commit 163295f0f5
2 changed files with 18 additions and 14 deletions

View File

@ -60,14 +60,16 @@ HEADERS += \
VERSION = 2.2.4
# Set "make install" command for Unix-like systems.
unix{
isEmpty(PREFIX){
PREFIX = $$DEFAULT_PREFIX/lib
}
}
unix:!macx{
target.path = $$PREFIX/lib
isEmpty(PREFIX){
contains(QMAKE_HOST.arch, x86_64) {
PREFIX = $$DEFAULT_PREFIX/lib64
} else {
PREFIX = $$DEFAULT_PREFIX/lib
}
}
target.path = $$PREFIX
INSTALLS += target
}

View File

@ -102,14 +102,16 @@ HEADERS +=\
stable.h
# Set "make install" command for Unix-like systems.
unix{
isEmpty(PREFIX){
PREFIX = $$DEFAULT_PREFIX/lib
}
}
unix:!macx{
target.path = $$PREFIX/lib
isEmpty(PREFIX){
contains(QMAKE_HOST.arch, x86_64) {
PREFIX = $$DEFAULT_PREFIX/lib64
} else {
PREFIX = $$DEFAULT_PREFIX/lib
}
}
target.path = $$PREFIX
INSTALLS += target
}