]> Git [git.vados.ru] :: Repos - Mikrotiks/Mikrotiks.git/commitdiff
Autocommit in repo: Mikrotiks, generated by owner: mikro_bak, in 15:24:25 15.04.2026.
authorvados-dev <vados@vados.ru>
Wed, 15 Apr 2026 12:24:25 +0000 (15:24 +0300)
committervados-dev <vados@vados.ru>
Wed, 15 Apr 2026 12:24:25 +0000 (15:24 +0300)
Makefile

index ff4cf7cd37d1bc331fa86a8b202dd7516615f7c9..37698131a81e12006da680f5b65c6adbfe0987f4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,9 +11,11 @@ SHELL := /bin/bash
 
 include ../.config/config.mk
 
-COMM_TAG := $(shell git rev-list --abbrev-commit --tags --max-count=1)
+COMM_TAG := $(shell git rev-list --abbrev-commit --tags --max-count=1 2>/dev/null || true)
+#COMM_TAG := $(shell git rev-list --abbrev-commit --tags --max-count=1)
 # Keep non-fatal behavior without relying on /dev/null permissions.
-TAG := $(shell git describe --abbrev=0 --tags ${COMM_TAG} || true)
+TAG := $(if $(COMM_TAG),$(shell git describe --abbrev=0 --tags $(COMM_TAG) 2>/dev/null || true),)
+#TAG := $(shell git describe --abbrev=0 --tags ${COMM_TAG} || true)
 # here we strip the version prefix
 TAG_VERS :=$(TAG:v%=%)
 # get the latest commit hash in the short form