Correctly set variables in Makefile
This commit is contained in:
parent
f076794c5a
commit
d8d17df2c5
8
Makefile
8
Makefile
|
@ -20,16 +20,16 @@ check-ledger:
|
||||||
ifeq ($(LEDGER_ENABLED),true)
|
ifeq ($(LEDGER_ENABLED),true)
|
||||||
ifeq ($(UNAME_S),OpenBSD)
|
ifeq ($(UNAME_S),OpenBSD)
|
||||||
$(info "OpenBSD detected, disabling ledger support (https://github.com/cosmos/cosmos-sdk/issues/1988)")
|
$(info "OpenBSD detected, disabling ledger support (https://github.com/cosmos/cosmos-sdk/issues/1988)")
|
||||||
TMP_BUILD_TAGS := $(BUILD_TAGS)
|
TMP_BUILD_TAGS := $(BUILD_TAGS)
|
||||||
BUILD_TAGS = $(filter-out ledger, $(TMP_BUILD_TAGS))
|
BUILD_TAGS = $(filter-out ledger, $(TMP_BUILD_TAGS))
|
||||||
else
|
else
|
||||||
ifndef GCC
|
ifndef GCC
|
||||||
$(error "gcc not installed for ledger support, please install or set LEDGER_ENABLED to false in the Makefile")
|
$(error "gcc not installed for ledger support, please install or set LEDGER_ENABLED to false in the Makefile")
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
TMP_BUILD_TAGS := $(BUILD_TAGS)
|
TMP_BUILD_TAGS := $(BUILD_TAGS)
|
||||||
BUILD_TAGS = $(filter-out ledger, $(TMP_BUILD_TAGS))
|
BUILD_TAGS = $(filter-out ledger, $(TMP_BUILD_TAGS))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
build: check-ledger
|
build: check-ledger
|
||||||
|
|
Loading…
Reference in New Issue