diff options
author | Jesse Vincent <jesse@keyboard.io> | 2017-10-04 23:12:35 -0700 |
---|---|---|
committer | Jesse Vincent <jesse@keyboard.io> | 2017-10-04 23:13:28 -0700 |
commit | beb849f84f6f96019e5c57c2800d033946bd0b07 (patch) | |
tree | 8d4dee33bd62acbc121f65849302abadecb26d00 /Makefile | |
parent | 492dc5e70f62bb66872a8af2a86beab9e4b95321 (diff) | |
download | model01-firmware-beb849f84f6f96019e5c57c2800d033946bd0b07.tar.gz model01-firmware-beb849f84f6f96019e5c57c2800d033946bd0b07.tar.bz2 model01-firmware-beb849f84f6f96019e5c57c2800d033946bd0b07.zip |
makefile: if there's an arduino boards-manager install of the kaleidoscope runtime, use it..
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |