aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-01-04 21:02:45 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-01-04 21:02:45 +0100
commit2f50ae8864aa2ba9e5807432eb878552389a9cb2 (patch)
treed4d028587942f109f10fcead918d9682a70f9bad /Makefile
parent7c0e1f7ffb750813a788940fdd55e9800c2f701d (diff)
downloadtrygvisio_soil_moisture-2f50ae8864aa2ba9e5807432eb878552389a9cb2.tar.gz
trygvisio_soil_moisture-2f50ae8864aa2ba9e5807432eb878552389a9cb2.tar.bz2
trygvisio_soil_moisture-2f50ae8864aa2ba9e5807432eb878552389a9cb2.tar.xz
trygvisio_soil_moisture-2f50ae8864aa2ba9e5807432eb878552389a9cb2.zip
o Reworking the code after implementing much more on the Android app.
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