1
0

Pass a version to an executable.

This commit is contained in:
Alexander Andreev 2023-04-24 00:31:18 +04:00
parent 4ffa2d07fa
commit 43fa61eebf
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

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