]> git.earman.xyz Git - sensor-watch.git/commitdiff
Don't allow building without setting board color.
authorWesley Aptekar-Cassels <me@wesleyac.com>
Thu, 28 Sep 2023 22:29:32 +0000 (18:29 -0400)
committerWesley Aptekar-Cassels <me@wesleyac.com>
Thu, 28 Sep 2023 22:29:32 +0000 (18:29 -0400)
Fixes: #288
make.mk

diff --git a/make.mk b/make.mk
index a83108bdbbeb51ddcc9556a22345cba6535249ca..31189c8f238d2eca55821a8bdfe4cf2fcf0484db 100644 (file)
--- a/make.mk
+++ b/make.mk
@@ -207,6 +207,10 @@ ifeq ($(LED), BLUE)
 CFLAGS += -DWATCH_IS_BLUE_BOARD
 endif
 
+ifndef COLOR
+$(error Set the COLOR variable to RED, BLUE, or GREEN depending on what board you have.)
+endif
+
 ifeq ($(COLOR), BLUE)
 CFLAGS += -DWATCH_IS_BLUE_BOARD
 endif