blob: b39fc754b9163365ac5ffb8ecd293406282e8f3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
## Platform-specific overrides
# Shamelessly stolen from git's Makefile
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
ARDUINO_HARDWARE_PATH=${HOME}/Arduino/hardware
ifeq ($(uname_S),Darwin)
ARDUINO_HARDWARE_PATH=${HOME}/Documents/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} $@
|