aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d52f7b7..39aa27c 100644
--- a/Makefile
+++ b/Makefile
@@ -7,4 +7,7 @@ MONITOR_PORT ?= /dev/ttyACM0
ARDUINO_LIBS = BLE SPI
ARDMK_DIR ?= /usr/share/arduino
-include $(ARDMK_DIR)/Arduino.mk
+-include $(ARDMK_DIR)/Arduino.mk
+
+$(ARDMK_DIR)/Arduino.mk:
+ @if [ ! -r $(ARDMK_DIR)/Arduino.mk ]; then echo "You need to install the arduino-mk package"; exit 1; fi