inject version at build time

This commit is contained in:
2025-06-14 09:00:04 +01:00
parent 898fbc3ae2
commit fd72628530
2 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ BIN_DIR := bin
WINDOWS=$(BIN_DIR)/$(PROGRAM)_windows_amd64.exe
LINUX=$(BIN_DIR)/$(PROGRAM)_linux_amd64
VERSION=$(shell git log -n 1 --format=%h)
VERSION=$(shell git describe --tags $(shell git rev-list --tags --max-count=1))
.DEFAULT_GOAL := build