aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Tim Segers <tsegers@pm.me>2025-12-08 09:31:13 +0100
committerGravatar Tim Segers <tsegers@pm.me>2025-12-08 09:31:13 +0100
commita9c31317048a4f1688d253bf158d75bfe068f703 (patch)
tree0656e02a5ab9ce2959ae9c465d0faa397e0052a7 /Makefile
parent86a61b7dec45ddeed4574353b9630e3ff5a7e27c (diff)
downloadtweetpipe-a9c31317048a4f1688d253bf158d75bfe068f703.tar.gz
Add version commandHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 28209e9..a554cda 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
+VERSION := $(shell git describe --tags --dirty --always)
+
PREFIX ?= /usr/local
WFLAGS ?= -Wall -Wextra -Wmissing-prototypes -Wdiv-by-zero -Wbad-function-cast -Wcast-align -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wnested-externs -Wno-unknown-pragmas -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-enum -Wno-type-limits
CFLAGS ?= -O3 -mtune=native -fno-exceptions -flto $(WFLAGS)
+CFLAGS += -DVERSION_STRING=\"$(VERSION)\"
CPPFLAGS += -I. -Iext
STRIP ?= strip