diff options
author | Wesley Aptekar-Cassels <me@wesleyac.com> | 2023-09-28 18:29:32 -0400 |
---|---|---|
committer | Wesley Aptekar-Cassels <me@wesleyac.com> | 2023-09-28 18:29:32 -0400 |
commit | c28ba6ef0bfc8f76c156b92b5c0acfdf1df13fcf (patch) | |
tree | 614b06534ada556f1bbd18cdde58a88e06b4446c | |
parent | 5c94111ea20e50cb9dab8f416603403185e933b3 (diff) | |
download | Sensor-Watch-c28ba6ef0bfc8f76c156b92b5c0acfdf1df13fcf.tar.gz Sensor-Watch-c28ba6ef0bfc8f76c156b92b5c0acfdf1df13fcf.tar.bz2 Sensor-Watch-c28ba6ef0bfc8f76c156b92b5c0acfdf1df13fcf.zip |
Don't allow building without setting board color.
Fixes: #288
-rw-r--r-- | make.mk | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |