1
0
Fork 0
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:
Henrik Hautakoski 2022-08-21 20:47:16 +02:00
parent b67b5d6b7e
commit 4b3ae5431c
No known key found for this signature in database
GPG key ID: 608414D93E862CCD

View file

@ -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