From beb849f84f6f96019e5c57c2800d033946bd0b07 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 4 Oct 2017 23:12:35 -0700 Subject: makefile: if there's an arduino boards-manager install of the kaleidoscope runtime, use it.. --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3