make: Fix printing error if BOARD unset

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2024-02-21 16:14:21 -07:00
committed by Jeremy Soller
parent 82b9e19746
commit 183778c32f

View File

@ -16,8 +16,7 @@ BUILD = build
# Parameter for current board
ifeq ($(BOARD),)
all:
@echo -e "\x1B[31mBOARD must be specified\x1B[0m"
@exit 1
$(error BOARD must be specified)
else
# Calculate version
DATE=$(shell git show --format="%cs" --no-patch --no-show-signature)