aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Vincent <jesse@keyboard.io>2017-10-04 23:12:35 -0700
committerJesse Vincent <jesse@keyboard.io>2017-10-04 23:13:28 -0700
commitbeb849f84f6f96019e5c57c2800d033946bd0b07 (patch)
tree8d4dee33bd62acbc121f65849302abadecb26d00 /Makefile
parentMerge pull request #18 from Jennigma/patch-1 (diff)
downloadkeyboardio-model01-beb849f84f6f96019e5c57c2800d033946bd0b07.tar.gz
keyboardio-model01-beb849f84f6f96019e5c57c2800d033946bd0b07.tar.bz2
keyboardio-model01-beb849f84f6f96019e5c57c2800d033946bd0b07.zip
makefile: if there's an arduino boards-manager install of the kaleidoscope runtime, use it..
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8f830f4..80a5aad 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,17 @@
UNAME_S := $(shell uname -s)
+
+INSTALLED_ENV=$(shell ls -dt ~/.arduino15/packages/keyboardio/hardware/avr/*|head -n 1)
+
+ifneq ("$(wildcard $(INSTALLED_ENV)/boards.txt)","")
+BOARD_HARDWARE_PATH = $(INSTALLED_ENV)
+KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR ?= build-tools/makefiles/
+KALEIDOSCOPE_BUILDER_DIR ?= $(INSTALLED_ENV)/libraries/Kaleidoscope/bin/
+endif
+
+
+
ifeq ($(UNAME_S),Darwin)
SKETCHBOOK_DIR ?= $(HOME)/Documents/Arduino/
else