The one downside to this is that we're now using the version of builder in Arduino-boards rather than in the current checkout.pull/135/head
parent
c5c361cb3c
commit
9825e4057a
@ -1,10 +1,12 @@
|
|||||||
# default action for `make` is `build`
|
# This stub makefile for a Kaleidoscope plugin pulls in
|
||||||
build:
|
# all targets from the Kaleidoscope-Plugin library
|
||||||
|
|
||||||
astyle:
|
MAKEFILE_PREFIX=keyboardio/avr/libraries/Kaleidoscope-Plugin/build
|
||||||
find . -type f -name \*.cpp |xargs -n 1 astyle --style=google
|
UNAME_S := $(shell uname -s)
|
||||||
find . -type f -name \*.ino |xargs -n 1 astyle --style=google
|
|
||||||
find . -type f -name \*.h |xargs -n 1 astyle --style=google
|
|
||||||
|
|
||||||
%:
|
BOARD_HARDWARE_PATH ?= $(HOME)/Arduino/hardware
|
||||||
@tools/kaleidoscope-builder $@
|
ifeq ($(UNAME_S),Darwin)
|
||||||
|
BOARD_HARDWARE_PATH ?= $(HOME)/Library/Arduino/hardware
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(BOARD_HARDWARE_PATH)/$(MAKEFILE_PREFIX)/*.mk
|
||||||
|
Loading…
Reference in new issue