From 31eca35b40d8eee390835396f6fe399e5f26716e Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 6 Feb 2020 13:06:13 -0700 Subject: [PATCH] Require board to be set --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 3076aa2..48c3502 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ # Parameter for current board -#BOARD?=system76/galp3-c -BOARD?=system76/lemp9 -#BOARD?=arduino/mega2560 -#BOARD?=arduino/micro -#BOARD?=arduino/uno +ifeq ($(BOARD),) +$(info $(shell echo Please set BOARD to one of the following)) +$(info $(shell cd src/board && echo */*)) +$(error BOARD not set) +endif # Set build directory BUILD=build/$(BOARD)