mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-02 11:43:40 +02:00
Makefile: Inject program version into main.VersionString variable.
This commit is contained in:
parent
76c6530993
commit
5e9b7ceb1d
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -1,7 +1,8 @@
|
||||||
|
|
||||||
GO=go
|
GO=go
|
||||||
GOBUILDFLAGS=-v --buildmode=pie
|
GOBUILDFLAGS=-v --buildmode=pie -ldflags="-v -s -w -X main.VersionString=$(PROGRAM_VERSION)"
|
||||||
PROGRAM=thalos-server
|
PROGRAM=thalos-server
|
||||||
|
PROGRAM_VERSION=0.1.0
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local
|
||||||
BINDIR=$(PREFIX)/bin
|
BINDIR=$(PREFIX)/bin
|
||||||
CFGDIR=$(PREFIX)/etc
|
CFGDIR=$(PREFIX)/etc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue