@@ -4,11 +4,11 @@ BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
44COMMIT := $(shell git log -1 --format='% H')
55
66ifeq (,$(VERSION ) )
7- VERSION := $(shell git describe --tags)
8- # if VERSION is empty, then populate it with branch's name and raw commit hash
9- ifeq (,$(VERSION))
10- VERSION := $(BRANCH ) -$(COMMIT )
11- endif
7+ VERSION := $(shell git describe --tags)
8+ # if VERSION is empty, then populate it with branch's name and raw commit hash
9+ ifeq (,$(VERSION))
10+ VERSION := $(BRANCH)-$(COMMIT)
11+ endif
1212endif
1313
1414LEDGER_ENABLED ?= true
@@ -25,30 +25,30 @@ export GO111MODULE = on
2525
2626build_tags = netgo
2727ifeq ($(LEDGER_ENABLED ) ,true)
28- ifeq ($(OS),Windows_NT)
29- GCCEXE = $(shell where gcc.exe 2> NUL)
30- ifeq ($(GCCEXE),)
31- $(error gcc.exe not installed for ledger support, please install or set LEDGER_ENABLED=false)
32- else
33- build_tags += ledger
34- endif
35- else
36- UNAME_S = $(shell uname -s)
37- ifeq ($(UNAME_S),OpenBSD)
38- $(warning OpenBSD detected, disabling ledger support (https ://github.com/cosmos/cosmos-sdk/issues/1988))
39- else
40- GCC = $(shell command -v gcc 2> /dev/null)
41- ifeq ($(GCC),)
42- $(error gcc not installed for ledger support, please install or set LEDGER_ENABLED=false)
43- else
44- build_tags += ledger
45- endif
46- endif
47- endif
28+ ifeq ($(OS),Windows_NT)
29+ GCCEXE = $(shell where gcc.exe 2> NUL)
30+ ifeq ($(GCCEXE),)
31+ $(error gcc.exe not installed for ledger support, please install or set LEDGER_ENABLED=false)
32+ else
33+ build_tags += ledger
34+ endif
35+ else
36+ UNAME_S = $(shell uname -s)
37+ ifeq ($(UNAME_S),OpenBSD)
38+ $(warning OpenBSD detected, disabling ledger support (https://github.com/cosmos/cosmos-sdk/issues/1988))
39+ else
40+ GCC = $(shell command -v gcc 2> /dev/null)
41+ ifeq ($(GCC),)
42+ $(error gcc not installed for ledger support, please install or set LEDGER_ENABLED=false)
43+ else
44+ build_tags += ledger
45+ endif
46+ endif
47+ endif
4848endif
4949
5050ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS ) ) )
51- build_tags += gcc cleveldb
51+ build_tags += gcc cleveldb
5252endif
5353build_tags += $(BUILD_TAGS )
5454build_tags := $(strip $(build_tags ) )
@@ -67,21 +67,21 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=feeapp \
6767 -X github.com/cometbft/cometbft/version.TMCoreSemVer=$(TM_VERSION )
6868
6969ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS ) ) )
70- ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=cleveldb
70+ ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=cleveldb
7171endif
7272ifeq ($(LINK_STATICALLY ) ,true)
73- ldflags += -linkmode=external -extldflags "-Wl,-z,muldefs -static"
73+ ldflags += -linkmode=external -extldflags "-Wl,-z,muldefs -static"
7474endif
7575ifeq (,$(findstring nostrip,$(COSMOS_BUILD_OPTIONS ) ) )
76- ldflags += -w -s
76+ ldflags += -w -s
7777endif
7878ldflags += $(LDFLAGS )
7979ldflags := $(strip $(ldflags ) )
8080
8181BUILD_FLAGS := -tags "$(build_tags ) " -ldflags '$(ldflags ) '
8282# check for nostrip option
8383ifeq (,$(findstring nostrip,$(COSMOS_BUILD_OPTIONS ) ) )
84- BUILD_FLAGS += -trimpath
84+ BUILD_FLAGS += -trimpath
8585endif
8686
8787
@@ -135,6 +135,16 @@ ictest-all: ictest-basic ictest-ibc ictest-packet-forward ictest-host-zone-propo
135135
136136.PHONY : ictest-basic ictest-ibc ictest-packet-forward ictest-all ictest-host-zone-proposal ictest-query-osmosis-twap ictest-feeabs
137137
138+ # ##############################################################################
139+ # ## Integration Test ###
140+ # ##############################################################################
141+
142+ build-integration-binary :
143+ @git submodule update --init --recursive
144+ @bash tests/integration/build-binary.sh
145+
146+ .PHONY : build-integration-binary
147+
138148# ##############################################################################
139149# ## Proto ###
140150# ##############################################################################
0 commit comments