Skip to content

Commit

Permalink
Add warning when ledger support disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
giunatale committed Oct 28, 2024
1 parent a9ad7c9 commit 34be66a
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 to enable 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 34be66a

Please sign in to comment.