From 4c570468183df3c6a8d60ca2c5087e10eb3218b9 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 24 Jan 2017 12:37:49 +0100 Subject: [PATCH] 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 --- Makefile | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/Makefile b/Makefile index 8cc4e060..f1bb475c 100644 --- a/Makefile +++ b/Makefile @@ -1,34 +1,10 @@ # default action for `make` is `build` -build: compile size +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 -generate-keymaps: - tools/keyboardio-builder generate-keymaps - -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 +%: + @tools/keyboardio-builder $@