From aa17f868fb8ffde1316c0f63fb9b234d8b4f7d7e Mon Sep 17 00:00:00 2001 From: ftheirs Date: Tue, 23 Jul 2024 11:37:29 -0300 Subject: [PATCH] minor fix makefile --- app/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/Makefile b/app/Makefile index ee9f1b3d..39b4d0c4 100755 --- a/app/Makefile +++ b/app/Makefile @@ -27,13 +27,20 @@ include $(CURDIR)/../deps/ledger-zxlib/makefiles/Makefile.installer_script include $(BOLOS_SDK)/Makefile.defines include $(CURDIR)/Makefile.version -$(info ************ TARGET_NAME = [$(TARGET_NAME)]) PRODUCTION_BUILD ?= 1 -$(info ************ PRODUCTION_BUILD = [$(if $(filter 1,$(PRODUCTION_BUILD)),PRODUCTION BUILD,INTERNAL USE)]) -DEFINES += PRODUCTION_BUILD=$(PRODUCTION_BUILD) +# Display the target name $(info ************ TARGET_NAME = [$(TARGET_NAME)]) +# Display whether this is a production build or for internal use +ifeq ($(PRODUCTION_BUILD), 1) + $(info ************ PRODUCTION_BUILD = [PRODUCTION BUILD]) +else + $(info ************ PRODUCTION_BUILD = [INTERNAL USE]) +endif +# Add the PRODUCTION_BUILD definition to the compiler flags +DEFINES += PRODUCTION_BUILD=$(PRODUCTION_BUILD) + include $(CURDIR)/../deps/ledger-zxlib/makefiles/Makefile.app_testing ifndef COIN