diff --git a/qmake-debug.sh b/qmake-debug.sh index c41f937..1b43fd1 100755 --- a/qmake-debug.sh +++ b/qmake-debug.sh @@ -1,7 +1,10 @@ #!/bin/sh -if [ -n "$(which qtchooser)" ]; then - qmake -qt=qt5 app.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug +QMAKE_OPTS="app.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug" +if [ -n "$(which qmake-qt5)" ]; then + qmake-qt5 $QMAKE_OPTS +elif [ -n "$(which qtchooser)" ]; then + qmake -qt=qt5 $QMAKE_OPTS else - qmake app.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug + qmake $QMAKE_OPTS fi lupdate app.pro -no-obsolete diff --git a/qmake-release.sh b/qmake-release.sh index 5763745..3d60542 100755 --- a/qmake-release.sh +++ b/qmake-release.sh @@ -1,7 +1,10 @@ #!/bin/sh -if [ -n "$(which qtchooser)" ]; then - qmake -qt=qt5 app.pro -spec linux-g++ +QMAKE_OPTS="app.pro -spec linux-g++" +if [ -n "$(which qmake-qt5)" ]; then + qmake-qt5 $QMAKE_OPTS +elif [ -n "$(which qtchooser)" ]; then + qmake -qt=qt5 $QMAKE_OPTS else - qmake app.pro -spec linux-g++ + qmake $QMAKE_OPTS fi lupdate app.pro -no-obsolete