add tm version to makefile (#8689)
This commit is contained in:
parent
897f20b1d1
commit
2c18d8a28b
4
Makefile
4
Makefile
|
@ -3,6 +3,7 @@
|
||||||
PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation')
|
PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation')
|
||||||
PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation')
|
PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation')
|
||||||
VERSION := $(shell echo $(shell git describe --always) | sed 's/^v//')
|
VERSION := $(shell echo $(shell git describe --always) | sed 's/^v//')
|
||||||
|
TMVERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')
|
||||||
COMMIT := $(shell git log -1 --format='%H')
|
COMMIT := $(shell git log -1 --format='%H')
|
||||||
LEDGER_ENABLED ?= true
|
LEDGER_ENABLED ?= true
|
||||||
BINDIR ?= $(GOPATH)/bin
|
BINDIR ?= $(GOPATH)/bin
|
||||||
|
@ -58,7 +59,8 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=sim \
|
||||||
-X github.com/cosmos/cosmos-sdk/version.AppName=simd \
|
-X github.com/cosmos/cosmos-sdk/version.AppName=simd \
|
||||||
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
|
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
|
||||||
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
|
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
|
||||||
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)"
|
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \
|
||||||
|
-X github.com/tendermint/tendermint/version.TMCoreSemVer=$(TMVERSION)
|
||||||
|
|
||||||
# DB backend selection
|
# DB backend selection
|
||||||
ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS)))
|
ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS)))
|
||||||
|
|
Loading…
Reference in New Issue