1
0

makefile: if there's an arduino boards-manager install of the kaleidoscope runtime, use it..

This commit is contained in:
Jesse Vincent 2017-10-04 23:12:35 -07:00
parent 492dc5e70f
commit beb849f84f

View File

@ -3,6 +3,17 @@
UNAME_S := $(shell uname -s) 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) ifeq ($(UNAME_S),Darwin)
SKETCHBOOK_DIR ?= $(HOME)/Documents/Arduino/ SKETCHBOOK_DIR ?= $(HOME)/Documents/Arduino/
else else