Added a VERSION variable in Makefile.

This commit is contained in:
Alexander Andreev 2023-05-06 04:50:32 +04:00
parent a5f46d9187
commit 918fb18d22
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -6,7 +6,9 @@ SYSDDIR_=${shell pkg-config systemd --variable=systemdsystemunitdir}
SYSDDIR=${SYSDDIR_:/%=%}
DESTDIR=/
LDFLAGS=-ldflags "-s -w -X main.version=2.0.2" -tags osusergo,netgo
VERSION=2.0.2
LDFLAGS=-ldflags "-s -w -X main.version=${VERSION}" -tags osusergo,netgo
all: ${TARGET}