From c46be39d5830602113c88e07085b1195569109ec Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 25 Mar 2019 19:47:51 +0100 Subject: [PATCH] build: update cstyle/cstyle_check targets --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2320b3c76..c8f376708 100644 --- a/Makefile +++ b/Makefile @@ -81,13 +81,16 @@ style_check: ## run code style check on application sources and tests isort --check-only $(shell find src -name *.py ! -path 'src/trezor/messages/*') black --check $(shell find src -name *.py ! -path 'src/trezor/messages/*') -style: +style: ## apply code style on application sources and tests isort $(shell find src -name *.py ! -path 'src/trezor/messages/*') black $(shell find src -name *.py ! -path 'src/trezor/messages/*') -cstyle: ## run code style check on low-level C code +cstyle_check: ## run code style check on low-level C code ./tools/clang-format-check $(shell find embed -type f -name *.[ch]) +cstyle: ## apply code style on low-level C code + clang-format -i $(shell find embed -type f -name *.[ch]) + ## code generation: templates: ## render Mako templates (for lists of coins, tokens, etc.)