From 476fcd113270fac1adac7c0cbbd5e221d2b5ad95 Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Fri, 16 Dec 2022 15:58:38 +0100 Subject: styling: Add target checkstyle to Makefile Signed-off-by: Johnny Richard --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 208cc9f..97dddd9 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,9 @@ test: lib/libmunit.so $(BUILD_DIR) $(TESTS) lib/libmunit.so: $(LIB_DIR) third_party/munit/munit.c $(CC) -Wall -fpic -c third_party/munit/munit.c -shared -o lib/libmunit.so +checkstyle: + clang-format -dry-run -Werror */**.c */**.h + clean: @rm -rf $(BUILD_DIR) @rm -rf $(LIB_DIR) -- cgit v1.2.3