mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-07 12:30:45 +00:00
Co-authored-by: Erik Grinaker <erik@interchain.berlin> Co-authored-by: Alessio Treglia <alessio@tendermint.com>
22 lines
697 B
Makefile
22 lines
697 B
Makefile
.PHONY: build install docker-image
|
|
|
|
TENDERMINT_VERSION?=latest
|
|
BUILD_TAGS?='tendermint'
|
|
VERSION := $(shell git describe --always)
|
|
BUILD_FLAGS = -ldflags "-X github.com/tendermint/tendermint/version.TMCoreSemVer=$(VERSION)
|
|
|
|
.DEFAULT_GOAL := build
|
|
|
|
build:
|
|
CGO_ENABLED=0 go build $(BUILD_FLAGS) -tags $(BUILD_TAGS) -o ../../build/tm-signer-harness main.go
|
|
|
|
install:
|
|
CGO_ENABLED=0 go install $(BUILD_FLAGS) -tags $(BUILD_TAGS) .
|
|
|
|
docker-image:
|
|
GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -tags $(BUILD_TAGS) -o tm-signer-harness main.go
|
|
docker build \
|
|
--build-arg TENDERMINT_VERSION=$(TENDERMINT_VERSION) \
|
|
-t tendermint/tm-signer-harness:$(TENDERMINT_VERSION) .
|
|
rm -rf tm-signer-harness
|