build: strip v prefix from EVEN_VERSION

This commit is contained in:
Zephyr Lykos 2024-04-01 02:31:12 +08:00
parent 5ca6ecab0e
commit d0ba56100d
No known key found for this signature in database
GPG Key ID: D3E9D31E2F77F04D

View File

@ -10,7 +10,7 @@ LDFLAGS = -Wl,--subsystem,native \
-mdll -nostartfiles -nostdlib \
-s
VERSION = $(shell git describe --long --tags --dirty)
VERSION = $(shell git describe --long --tags --dirty | sed 's/^v//')
ifneq ($(VERSION),)
CFLAGS += -DEVEN_VERSION=\"$(VERSION)\"