Merge branch 'bindir' into 'master'

Add support for BINDIR environmental variable

See merge request b0/spectral!28
This commit is contained in:
Black Hat 2018-10-24 23:02:21 +00:00
commit 36008c4598
1 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,11 @@ unix:!mac:isEmpty(PREFIX) {
message("Install PREFIX not set; using /usr/local. You can change this with 'qmake PREFIX=...'") message("Install PREFIX not set; using /usr/local. You can change this with 'qmake PREFIX=...'")
PREFIX = /usr/local PREFIX = /usr/local
} }
unix:target.path = $$PREFIX/bin unix:!mac:isEmpty(BINDIR) {
message("Install BINDIR not set; using PREFIX/bin. You can change this with 'qmake BINDIR=...'")
BINDIR = $$PREFIX/bin
}
unix:target.path = $$BINDIR
win32:target.path = $$PREFIX win32:target.path = $$PREFIX
!isEmpty(target.path): INSTALLS += target !isEmpty(target.path): INSTALLS += target