Added a VERSION variable in Makefile.
This commit is contained in:
parent
a5f46d9187
commit
918fb18d22
4
Makefile
4
Makefile
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user