Makefile: Major simplification

Apart from marking the `build` target as the default, and a custom
`astyle` target, everything else will just be dispatched further to
tools/keyboardio-builder.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/84/head
Gergely Nagy 8 years ago
parent 9ce7096268
commit 4c57046818

@ -1,34 +1,10 @@
# default action for `make` is `build` # default action for `make` is `build`
build: compile size build:
astyle: astyle:
find . -type f -name \*.cpp |xargs -n 1 astyle --style=google 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 \*.ino |xargs -n 1 astyle --style=google
find . -type f -name \*.h |xargs -n 1 astyle --style=google find . -type f -name \*.h |xargs -n 1 astyle --style=google
generate-keymaps: %:
tools/keyboardio-builder generate-keymaps @tools/keyboardio-builder $@
compile:
tools/keyboardio-builder compile
size: compile
tools/keyboardio-builder report-size
size-map: compile
tools/keyboardio-builder size-map
decompile: compile
tools/keyboardio-builder decompile
hex-with-bootloader: compile
tools/keyboardio-builder hex-with-bootloader
reset-device:
tools/keyboardio-builder reset-device
flash: compile reset-device
tools/keyboardio-builder flash
program:
tools/keyboardio-builder program

Loading…
Cancel
Save