From 363ffb5f85b3af21f65ade0ba7e20eb1bc665ca3 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 31 Mar 2024 22:43:15 +0200 Subject: [PATCH] Use qmake6 if available --- Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 9631a87..df98b78 100644 --- a/Makefile +++ b/Makefile @@ -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