From 3dd0109044bee35c69851fc2d66e40e120704541 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..316a52195 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}x describe --tags 2>/dev/null || echo ${VERSION}) endif SYSTEMD ?= $(shell $(PKG_CONFIG) --silence-errors ${SYSTEMDAEMON} || echo 0)