mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-05 21:14:53 +00:00
porting PR #6498 to main #### PR checklist - [x] Tests written/updated, or no tests needed - [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed - [x] Updated relevant documentation (`docs/`) and code comments, or no documentation updates needed
22 lines
698 B
Makefile
22 lines
698 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
|