From 27447752c393780b67f06fd9694c75acc151028d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Palmer?= Date: Mon, 26 Feb 2024 13:26:43 +0100 Subject: [PATCH] Makefile: add a TARGET constant `TARGET=nanox make` is equivalent to `BOLOS_SDK=NANOX_SDK make` --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 4c517004..e21018b5 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +ifneq ($(TARGET),) +BOLOS_SDK = $(value $(shell echo $(TARGET) | tr '[:lower:]' '[:upper:]')_SDK) +endif + ifeq ($(BOLOS_SDK),) $(error Environment variable BOLOS_SDK is not set) endif