From 34be66a90ddcb8b1d6c3c61d64f106e5ddaca2db Mon Sep 17 00:00:00 2001 From: Giuseppe Natale <12249307+giunatale@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:58:58 +0100 Subject: [PATCH 1/2] Add warning when ledger support disabled --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b20649f2..2bb8b6c2 100644 --- a/Makefile +++ b/Makefile @@ -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 From b19d72222657b01b7a6df710fa5c8ae2037b6a47 Mon Sep 17 00:00:00 2001 From: Giuseppe Natale <12249307+giunatale@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:06:51 +0100 Subject: [PATCH 2/2] fix text --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2bb8b6c2..456a7a6c 100644 --- a/Makefile +++ b/Makefile @@ -106,7 +106,7 @@ 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.) + $(info Building without Ledger support. Set LEDGER_ENABLED=true or use build-ledger target to build with Ledger support.) endif BUILD_TARGETS := build install