Broken make install path for library if prefix doesn't default.

--HG--
branch : develop
This commit is contained in:
dismine 2014-11-21 14:01:35 +02:00
parent f8b02e7f40
commit 013a8d7cfd
3 changed files with 23 additions and 3 deletions

View File

@ -45,7 +45,7 @@ The installed toolchains have to match the one Qt was compiled with.
You can build Valentina with
cd $SOURCE_DIRECTORY
qmake -r
qmake Valentina.pro -r (or qmake-qt5, depending on your platform)
make (or mingw32-make or nmake or jom, depending on your platform)
Note:In order to build and use Valentina, the PATH environment variable
@ -61,6 +61,14 @@ You may also need to ensure that the locations of your compiler and
other build tools are listed in the PATH variable. This will depend on
your choice of software development environment.
Unix systems:
Default prefix for command "make install" is /usr. For using another
prefix build with qmake command:
qmake PREFIX=/usr/local Valentina.pro -r
where /usr/local is a new prefix for installation.
LICENSING
==========
Valentina is free software: you can redistribute it and/or modify

View File

@ -67,9 +67,15 @@ unix:!macx{
} else {
PREFIX = $$DEFAULT_PREFIX/lib
}
target.path = $$PREFIX
} else {
contains(QMAKE_HOST.arch, x86_64) {
target.path = $$PREFIX/lib64
} else {
target.path = $$PREFIX/lib
}
}
target.path = $$PREFIX
INSTALLS += target
}

View File

@ -109,9 +109,15 @@ unix:!macx{
} else {
PREFIX = $$DEFAULT_PREFIX/lib
}
target.path = $$PREFIX
} else {
contains(QMAKE_HOST.arch, x86_64) {
target.path = $$PREFIX/lib64
} else {
target.path = $$PREFIX/lib
}
}
target.path = $$PREFIX
INSTALLS += target
}