From 041b2dd29d30a8ecadca22ef25282cbad672d94e Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Fri, 18 Sep 2026 09:56:10 +0200 Subject: Show tui and server versions in the status line; derive version from git - build: VERSION defaults to git describe, deploy passes the tag via --build-arg - bokftui: srv version from meta, right-aligned next to the status line --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6912473..418dc8e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ CC ?= cc CFLAGS ?= -O2 -g -VERSION = 0.1.0-dev +VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null \ + || echo 0.1.0-dev) WARN = -Wall -Wextra -Wshadow -Wstrict-prototypes -Wmissing-prototypes \ -Wpointer-arith -Wvla -Wformat=2 -- cgit v1.3