forked from keyboardio/Model01-Firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to more standard kaleidoscope plugin build infra
- Loading branch information
Showing
2 changed files
with
14 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
## Platform-specific overrides | ||
# Shamelessly stolen from git's Makefile | ||
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') | ||
# This stub makefile for a Kaleidoscope plugin pulls in | ||
# all targets from the Kaleidoscope-Plugin library | ||
|
||
ARDUINO_HARDWARE_PATH=${HOME}/Arduino/hardware | ||
MAKEFILE_PREFIX=keyboardio/avr/libraries/Kaleidoscope-Plugin/build | ||
UNAME_S := $(shell uname -s) | ||
|
||
ifeq ($(uname_S),Darwin) | ||
ARDUINO_HARDWARE_PATH=${HOME}/Documents/Arduino/hardware | ||
BOARD_HARDWARE_PATH ?= $(HOME)/Arduino/hardware | ||
ifeq ($(UNAME_S),Darwin) | ||
BOARD_HARDWARE_PATH ?= $(HOME)/Library/Arduino/hardware | ||
endif | ||
|
||
BUILDER_PATH=${ARDUINO_HARDWARE_PATH}/keyboardio/avr/libraries/Kaleidoscope/tools/kaleidoscope-builder | ||
|
||
|
||
# default action for `make` is `build` | ||
build: | ||
|
||
astyle: | ||
find . -type f -name \*.cpp |xargs -n 1 astyle --style=google | ||
find . -type f -name \*.ino |xargs -n 1 astyle --style=google | ||
find . -type f -name \*.h |xargs -n 1 astyle --style=google | ||
|
||
%: | ||
${BUILDER_PATH} $@ | ||
include $(BOARD_HARDWARE_PATH)/$(MAKEFILE_PREFIX)/*.mk |