aboutsummaryrefslogtreecommitdiff
path: root/libnitrokey.pro
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-04-10 09:34:16 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-04-10 09:34:16 +0200
commit6d116c18eb20237573668902ccd10597320a7ecd (patch)
tree5420a6efd9d74fe1a8b76e332960d3f4f6b1be21 /libnitrokey.pro
parent53599e95a5f0f1d9fed18c9b4418e6f506f5a973 (diff)
downloadlibnitrokey-6d116c18eb20237573668902ccd10597320a7ecd.tar.gz
libnitrokey-6d116c18eb20237573668902ccd10597320a7ecd.tar.bz2
WIP prefixed installqmake_prefixed_install
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'libnitrokey.pro')
-rw-r--r--libnitrokey.pro19
1 files changed, 12 insertions, 7 deletions
diff --git a/libnitrokey.pro b/libnitrokey.pro
index ea86294..8987031 100644
--- a/libnitrokey.pro
+++ b/libnitrokey.pro
@@ -79,22 +79,27 @@ INCLUDEPATH = \
#DEFINES =
+
+isEmpty(PREFIX) {
+ PREFIX = /usr/local
+}
+
unix:!macx{
# Install rules for QMake (CMake is preffered though)
udevrules.path = $$system(pkg-config --variable=udevdir udev)
isEmpty(udevrules.path){
- udevrules.path = "/lib/udev/"
+ udevrules.path = $$PREFIX/lib/udev/
message("Could not detect path for udev rules - setting default: " $$udevrules.path)
}
- udevrules.path = $$udevrules.path"/rules.d"
- udevrules.files = $$PWD/"data/41-nitrokey.rules"
+ udevrules.path = $$udevrules.path/rules.d
+ udevrules.files = $$PWD/data/41-nitrokey.rules
message ($$udevrules.files)
- INSTALLS +=udevrules
+ INSTALLS += udevrules
headers.files = $$HEADERS
- headers.path = /usr/local/include/libnitrokey/
+ headers.path = $$PREFIX/include/libnitrokey/
INSTALLS += headers
- libbin.path = /usr/local/lib
- INSTALLS += libbin
+ target.path = $$PREFIX/lib
+ INSTALLS += target
}