Use qmake6 if available

This commit is contained in:
Ximi1970
2024-03-31 22:43:15 +02:00
parent 4dfbc09a9a
commit d296660b9f

View File

@@ -5,13 +5,16 @@ else
ifeq (GNU/Linux,$(shell uname -o))
SYSTEM = Linux
QMAKE = qmake-qt5
ifeq (, $(shell which qmake-qt5 2>/dev/null))
ifeq (, $(shell which qmake 2>/dev/null))
$(error "No qmake in $(PATH)")
QMAKE = qmake6
ifeq (, $(shell which qmake6 2>/dev/null))
QMAKE = qmake-qt5
ifeq (, $(shell which qmake-qt5 2>/dev/null))
ifeq (, $(shell which qmake 2>/dev/null))
$(error "No qmake in $(PATH)")
endif
QMAKE = qmake
endif
endif
QMAKE = qmake
endif
else
$(error "Unknown system")
endif