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.
36 lines
1.1 KiB
36 lines
1.1 KiB
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|
mkfile_dir := $(dir $(mkfile_path))
|
|
|
|
|
|
export KALEIDOSCOPE_DIR ?= $(abspath $(mkfile_dir)/..)
|
|
export KALEIDOSCOPE_BIN_DIR ?= $(KALEIDOSCOPE_DIR)/bin
|
|
export ARDUINO_CONTENT ?= $(KALEIDOSCOPE_DIR)/.arduino
|
|
export ARDUINO_DIRECTORIES_DATA ?= $(ARDUINO_CONTENT)/data
|
|
export ARDUINO_DIRECTORIES_DOWNLOADS ?= $(ARDUINO_CONTENT)/downloads
|
|
export ARDUINO_DIRECTORIES_USER ?= $(ARDUINO_CONTENT)/user
|
|
export ARDUINO_CLI_CONFIG ?= $(ARDUINO_DIRECTORIES_DATA)/arduino-cli.yaml
|
|
export ARDUINO_BOARDS_MANAGER_KALEIDOSCOPE ?= https://raw.githubusercontent.com/keyboardio/boardsmanager/master/package_keyboardio_index.json
|
|
|
|
|
|
|
|
|
|
.DEFAULT_GOAL := compile
|
|
|
|
all:
|
|
@echo "Make all target doesn't do anything"
|
|
@: ## Do not remove this line, otherwise `make all` will trigger the `%` rule too.
|
|
|
|
decompile: disassemble
|
|
@: ## Do not remove this line, otherwise `make all` will trigger the `%` rule too.
|
|
|
|
disassemble: compile
|
|
|
|
size-map: compile
|
|
|
|
flash: compile
|
|
|
|
|
|
%:
|
|
ARDUINO_DIRECTORIES_USER=$(ARDUINO_DIRECTORIES_USER) $(KALEIDOSCOPE_BIN_DIR)/kaleidoscope-builder $@
|
|
|