summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-18 09:56:10 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-18 09:56:10 +0200
commit041b2dd29d30a8ecadca22ef25282cbad672d94e (patch)
tree303cee3bb41813764b131c0a0f4430d4dbca105d /Makefile
parent6de6ffa3e52a2bec519c2a052d0f26d01e38f167 (diff)
downloadbokf-0.1.12.tar.gz
bokf-0.1.12.zip
Show tui and server versions in the status line; derive version from gitv0.1.12
- 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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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