From 078ba792f065284104b3ab28fc8ab25e8b78f232 Mon Sep 17 00:00:00 2001 From: Imbus Date: Mon, 9 Feb 2026 13:52:57 +0100 Subject: [PATCH] Get version string from git, instead of hardcoded in makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 416e4c1..c26b039 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ GITREV ?= $(shell git describe --dirty --always) BLDDATE ?= $(shell date -I) CR_YEAR ?= $(shell date +%Y) -VERSION ?= "v0.2.1" +VERSION ?= "$(shell git describe --tags --always --abbrev=0 2>/dev/null || git rev-parse --short HEAD)" CFLAGS ?= -Wall -Wextra -Wpedantic -O2 -std=gnu99 CFLAGS += -DGITREV='"$(GITREV)"'