mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-18 05:00:03 +02:00
Makefile: Set VersionString variable when linking.
This commit is contained in:
parent
b67b5d6b7e
commit
4b3ae5431c
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
|
@ -1,10 +1,12 @@
|
|||
|
||||
PROGRAM_NAME = eosio-api-healthcheck
|
||||
export PROGRAM_VERSION = 1.2.2
|
||||
|
||||
GO = go
|
||||
PREFIX = /usr/local
|
||||
PROGRAM_NAME=eosio-api-healthcheck
|
||||
export GOOS = $(shell go env GOOS)
|
||||
export GOARCH = $(shell go env GOARCH)
|
||||
GOBUILDFLAGS = -v -ldflags='-v -s -w'
|
||||
GOBUILDFLAGS = -v -ldflags='-v -s -w -X main.VersionString=$(PROGRAM_VERSION)'
|
||||
|
||||
DPKG_BUILDPACKAGE = dpkg-buildpackage
|
||||
DPKG_BUILDPACKAGE_FLAGS = -us -uc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue