Skip to content

Commit

Permalink
Makefile: add a TARGET constant
Browse files Browse the repository at this point in the history
`TARGET=nanox make` is equivalent to `BOLOS_SDK=NANOX_SDK make`
  • Loading branch information
spalmer25 committed Feb 26, 2024
1 parent 38cbc3e commit 2744775
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2744775

Please sign in to comment.