You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kaleidoscope/etc/makefiles/arduino-cli.mk

29 lines
762 B

mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(dir $(mkfile_path))
include $(mkfile_dir)/arduino-cli-prop.mk
.PHONY: configure-arduino-cli install-arduino-core-kaleidoscope install-arduino-core-avr
.PHONY: all
.DEFAULT_GOAL := non-goal
non-goal:
@echo "Make without a target doesn't do anything"
@: ## Do not remove this line, otherwise `make all` will trigger the `%` rule too.
install-arduino-cli:
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR="$(KALEIDOSCOPE_BIN_DIR)" sh
configure-arduino-cli:
$(ARDUINO_CLI) config init
install-arduino-core-kaleidoscope:
$(ARDUINO_CLI) core install "keyboardio:avr"
install-arduino-core-avr:
$(ARDUINO_CLI) core install "arduino:avr"