From: Wesley Aptekar-Cassels Date: Thu, 28 Sep 2023 22:29:32 +0000 (-0400) Subject: Don't allow building without setting board color. X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=c28ba6ef0bfc8f76c156b92b5c0acfdf1df13fcf;p=sensor-watch.git Don't allow building without setting board color. Fixes: #288 --- diff --git a/make.mk b/make.mk index a83108b..31189c8 100644 --- 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