First step of getting the makefile to use an external kaleidoscope builder
This commit is contained in:
parent
b34785706c
commit
7f42dae5ad
15
Makefile
15
Makefile
@ -1,3 +1,16 @@
|
||||
## 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:
|
||||
|
||||
@ -7,4 +20,4 @@ astyle:
|
||||
find . -type f -name \*.h |xargs -n 1 astyle --style=google
|
||||
|
||||
%:
|
||||
@tools/kaleidoscope-builder $@
|
||||
${BUILDER_PATH} $@
|
||||
|
Loading…
x
Reference in New Issue
Block a user