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 VERSION = 2.2.4
# Set "make install" command for Unix-like systems. # Set "make install" command for Unix-like systems.
unix{ unix:!macx{
isEmpty(PREFIX){ isEmpty(PREFIX){
contains(QMAKE_HOST.arch, x86_64) {
PREFIX = $$DEFAULT_PREFIX/lib64
} else {
PREFIX = $$DEFAULT_PREFIX/lib PREFIX = $$DEFAULT_PREFIX/lib
} }
} }
unix:!macx{ target.path = $$PREFIX
target.path = $$PREFIX/lib
INSTALLS += target INSTALLS += target
} }

View File

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