From dc0a3f0554d7dcd34b092c47724a1e62fe6152c3 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 11 Feb 2025 00:18:16 -0500 Subject: [PATCH] Use git soft tags to define VERSION. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 76d4362d..7e6bcb6c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ RACK_DIR ?= . EDITION := Free VERSION_MAJOR := 2 -VERSION := $(VERSION_MAJOR).6.$(shell git rev-parse --short HEAD) +VERSION := $(patsubst v%,%,$(shell git describe --tags --match "v$(VERSION_MAJOR).*")) FLAGS += -Iinclude -Idep/include