From 4e8f762f9ae1b456cd99f11d0d64d66df32ae6be Mon Sep 17 00:00:00 2001 From: bynect <68197565+bynect@users.noreply.github.com> Date: Tue, 20 Feb 2024 01:04:42 +0100 Subject: [PATCH] Prevent make from failing if git tags are not found --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 35bb10271..c476e1430 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ include config.mk VERSION := "1.10.0-non-git" ifneq ($(wildcard ./.git/),) -VERSION := $(shell ${GIT} describe --tags) +VERSION := $(shell ${GIT} describe --tags 2>/dev/null || echo ${VERSION}) endif SYSTEMD ?= $(shell $(PKG_CONFIG) --silence-errors ${SYSTEMDAEMON} || echo 0)