Skip to content

Commit

Permalink
fix: enable ledger support (#517) (#519)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8df1692)

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
  • Loading branch information
mergify[bot] and alexanderbez authored Feb 7, 2022
1 parent 63184c3 commit f58c710
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- markdownlint-disable MD013 -->

<!--
Changelog Guiding Principles:
Expand Down Expand Up @@ -43,6 +45,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [Unreleased]

### Bug Fixes

- [#517](https://github.com/umee-network/umee/pull/517) Fix makefile `build` and `install` targets to support Ledger devices.

## [v1.0.0](https://github.com/umee-network/umee/releases/tag/v1.0.0) - 2022-02-07

### Features
Expand Down
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ ifeq ($(LEDGER_ENABLED),true)
endif
endif

build_tags += $(BUILD_TAGS)
build_tags := $(strip $(build_tags))
whitespace :=
whitespace += $(whitespace)
comma := ,
Expand All @@ -69,15 +67,18 @@ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=umee \
-X github.com/tendermint/tendermint/version.TMCoreSemVer=$(TM_VERSION) \
-X github.com/umee-network/umee/cmd/umeed/cmd.EnableBeta=$(UMEE_ENABLE_BETA)

ldflags += $(LDFLAGS)
ldflags := $(strip $(ldflags))

BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)'

build: go.sum
@echo "--> Building..."
CGO_ENABLED=0 go build -mod=readonly -o $(BUILD_DIR)/ $(BUILD_FLAGS) ./...
go build -mod=readonly $(BUILD_FLAGS) -o $(BUILD_DIR)/ ./...

install: go.sum
@echo "--> Installing..."
CGO_ENABLED=0 go install -mod=readonly $(BUILD_FLAGS) ./...
go install -mod=readonly $(BUILD_FLAGS) ./...

build-linux: go.sum
LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build
Expand Down

0 comments on commit f58c710

Please sign in to comment.