@@ -21,26 +21,26 @@ ENABLE_ROCKSDB ?= false
2121# process build tags
2222build_tags = netgo
2323ifeq ($(LEDGER_ENABLED ) ,true)
24- ifeq ($(OS),Windows_NT)
25- GCCEXE = $(shell where gcc.exe 2> NUL)
26- ifeq ($(GCCEXE),)
27- $(error gcc.exe not installed for ledger support, please install or set LEDGER_ENABLED=false)
28- else
29- build_tags += ledger
30- endif
31- else
32- UNAME_S = $(shell uname -s)
33- ifeq ($(UNAME_S),OpenBSD)
34- $(warning OpenBSD detected, disabling ledger support (https ://github.com/cosmos/cosmos-sdk/issues/1988))
35- else
36- GCC = $(shell command -v gcc 2> /dev/null)
37- ifeq ($(GCC),)
38- $(error gcc not installed for ledger support, please install or set LEDGER_ENABLED=false)
39- else
40- build_tags += ledger
41- endif
42- endif
43- endif
24+ ifeq ($(OS),Windows_NT)
25+ GCCEXE = $(shell where gcc.exe 2> NUL)
26+ ifeq ($(GCCEXE),)
27+ $(error gcc.exe not installed for ledger support, please install or set LEDGER_ENABLED=false)
28+ else
29+ build_tags += ledger
30+ endif
31+ else
32+ UNAME_S = $(shell uname -s)
33+ ifeq ($(UNAME_S),OpenBSD)
34+ $(warning OpenBSD detected, disabling ledger support (https://github.com/cosmos/cosmos-sdk/issues/1988))
35+ else
36+ GCC = $(shell command -v gcc 2> /dev/null)
37+ ifeq ($(GCC),)
38+ $(error gcc not installed for ledger support, please install or set LEDGER_ENABLED=false)
39+ else
40+ build_tags += ledger
41+ endif
42+ endif
43+ endif
4444endif
4545
4646ifeq (secp,$(findstring secp,$(COSMOS_BUILD_OPTIONS ) ) )
@@ -125,7 +125,7 @@ build: BUILD_ARGS=-o $(BUILDDIR)/
125125
126126build-linux-amd64 :
127127 GOOS=linux GOARCH=amd64 LEDGER_ENABLED=false $(MAKE ) build
128-
128+
129129build-linux-arm64 :
130130 GOOS=linux GOARCH=arm64 LEDGER_ENABLED=false $(MAKE ) build
131131
@@ -157,9 +157,9 @@ $(MOCKS_DIR):
157157distclean : clean tools-clean
158158clean :
159159 rm -rf \
160- $(BUILDDIR)/ \
161- artifacts/ \
162- tmp-swagger-gen/
160+ $(BUILDDIR ) / \
161+ artifacts/ \
162+ tmp-swagger-gen/
163163
164164.PHONY : distclean clean
165165
@@ -179,11 +179,11 @@ go.sum: go.mod
179179update-swagger-docs : statik
180180 $(BINDIR ) /statik -src=client/docs/swagger-ui -dest=client/docs -f -m
181181 @if [ -n " $( git status --porcelain) " ]; then \
182- echo "\033[91mSwagger docs are out of sync!!!\033[0m";\
183- exit 1;\
184- else \
185- echo "\033[92mSwagger docs are in sync\033[0m";\
186- fi
182+ echo " \033[91mSwagger docs are out of sync!!!\033[0m" ; \
183+ exit 1; \
184+ else \
185+ echo " \033[92mSwagger docs are in sync\033[0m" ; \
186+ fi
187187.PHONY : update-swagger-docs
188188
189189godocs :
0 commit comments