From c78be523bbcdc802929ce8f6fb119836dcbf99d5 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 28 Feb 2015 10:54:19 +0100 Subject: o Creating a way to configure the code for multiple boards. Look at config.h --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 286c386..3f4c604 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,13 @@ MONITOR_PORT ?= /dev/ttyACM0 ARDUINO_LIBS = BLE SPI EEPROM +ifdef CONFIG_MK +include $(CONFIG_MK) +endif + ARDMK_DIR ?= /usr/share/arduino -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 + @if [ ! -r $(ARDMK_DIR)/Arduino.mk ]; then echo "You need to install the arduino-mk package"; fi + @false -- cgit v1.2.3