Pass a version to an executable.
This commit is contained in:
parent
4ffa2d07fa
commit
43fa61eebf
4
Makefile
4
Makefile
@ -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}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user