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