diff options
author | Jesse Vincent <jesse@keyboard.io> | 2017-05-23 18:29:30 -0700 |
---|---|---|
committer | Jesse Vincent <jesse@keyboard.io> | 2017-05-23 18:29:30 -0700 |
commit | e92cdf6b58b655eae2332c367a175797802e86a7 (patch) | |
tree | b676ced582a776c635dffcfdaff335d106985a18 /Makefile | |
parent | f9b8624727f0e5acc16ac0f0d402d0403be7551d (diff) | |
download | Model01-Firmware-e92cdf6b58b655eae2332c367a175797802e86a7.tar.gz Model01-Firmware-e92cdf6b58b655eae2332c367a175797802e86a7.zip |
Switch to more standard kaleidoscope plugin build infra
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 8 insertions, 19 deletions
@@ -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 |