From 36f8f0b5847f9ff8d9893657452323c77eecc55a Mon Sep 17 00:00:00 2001 From: Salvatore Ingala <6681844+bigspider@users.noreply.github.com> Date: Wed, 7 Feb 2024 10:52:11 +0100 Subject: [PATCH] Add APPVERSION_SUFFIX in Makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 67432e8df..3084033fa 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,13 @@ PATH_SLIP21_APP_LOAD_PARAMS = "LEDGER-Wallet policy" APPVERSION_M = 2 APPVERSION_N = 2 APPVERSION_P = 0 -APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)" +APPVERSION_SUFFIX = # if not empty, appended at the end. Do not add a dash. + +ifeq ($(APPVERSION_SUFFIX),) +APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)" +else +APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)-$(strip $(APPVERSION_SUFFIX))" +endif # Setting to allow building variant applications VARIANT_PARAM = COIN