From c8d99d1aa0aa6575e7b3774d5577d2e3dd5862fc Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Wed, 4 Mar 2020 22:46:45 +0100 Subject: [PATCH] Update Makefile --- Makefile | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b771c69..3f44971 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,24 @@ -QMAKE=qmake-qt5 +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 .PHONY: clean \ - systray-x-xpi + systray-x-xpi \ + systray-x-app + +DATE := `date --utc +'%a %b %_d %H:%M:%S UTC %Y'` + +BUILD_NUMBER := $(shell git rev-list --count HEAD) +GIT_HASH := $(shell git rev-parse HEAD) +GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD) + +GIT_VERSION_LONG := $(shell git describe --long) +GIT_VERSION := $(shell git describe --long | sed "s/-.*//") + all: systray-x-xpi systray-x-app