Skip to content

Commit

Permalink
Don't hardcode bin path, this fixes using a different path for the bi…
Browse files Browse the repository at this point in the history
…nary but keeps the default
  • Loading branch information
Begasus committed Aug 31, 2023
1 parent 37a53e9 commit 225728e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qalculate-qt.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ VERSION = 4.8.0
isEmpty(PREFIX) {
PREFIX = /usr/local
}
isEmpty(BINDIR) {
BINDIR = ${PREFIX}/bin
}
isEmpty(DESKTOP_DIR) {
DESKTOP_DIR = $$PREFIX/share/applications
}
Expand Down Expand Up @@ -79,7 +82,7 @@ qtPrepareTool(LRELEASE, lrelease) for(tsfile, TRANSLATIONS) {

unix:!equals(COMPILE_RESOURCES,"yes"):!android:!macx {

target.path = $$PREFIX/bin
target.path = $$BINDIR

qm.files = translations/qalculate-qt_ca.qm \
translations/qalculate-qt_de.qm \
Expand Down Expand Up @@ -119,7 +122,7 @@ unix:!equals(COMPILE_RESOURCES,"yes"):!android:!macx {
RESOURCES = icons.qrc flags.qrc
} else {
RESOURCES = icons.qrc flags.qrc translations.qrc
target.path = $$PREFIX/bin
target.path = $$BINDIR
desktop.files = data/io.github.Qalculate.qalculate-qt.desktop
desktop.path = $$DESKTOP_DIR
appicon64.files = data/64/qalculate-qt.png
Expand Down

0 comments on commit 225728e

Please sign in to comment.