Skip to content

Commit

Permalink
chore: add info log when building with Ledger support disabled (#40)
Browse files Browse the repository at this point in the history
Add an info log line when building without ledger support to inform the
user of the presence of the appropriate target / env variable.
  • Loading branch information
giunatale authored Oct 28, 2024
1 parent a9ad7c9 commit 5c8e656
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,16 @@ ifneq ($(GO_SYSTEM_VERSION), $(GO_REQUIRED_VERSION))
exit 1
endif

check_ledger:
ifeq ($(LEDGER_ENABLED),false)
$(info Building without Ledger support. Set LEDGER_ENABLED=true or use build-ledger target to build with Ledger support.)
endif

BUILD_TARGETS := build install

build: BUILD_ARGS=-o $(BUILDDIR)/

$(BUILD_TARGETS): check_go_version go.sum $(BUILDDIR)/
$(BUILD_TARGETS): check_go_version check_ledger go.sum $(BUILDDIR)/
go $@ -mod=readonly $(BUILD_FLAGS) $(BUILD_ARGS) ./...

build-ledger: # Kept for convenience
Expand Down

0 comments on commit 5c8e656

Please sign in to comment.