From de3f8f73810d77f7231ceddfd63b0720493bd437 Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Sun, 30 Apr 2023 01:55:48 +0200 Subject: make: Add linter-fix target to Makefiles Signed-off-by: Johnny Richard --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6152ece..3963be1 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,11 @@ linter: $(SRCS) $(HEADERS) clang-format --dry-run --Werror $? $(MAKE) -C test linter +.PHONY: linter-fix +linter-fix: $(SRCS) $(HEADERS) + clang-format -i $? + $(MAKE) -C test linter-fix + .PHONY: test test: $(TARGET) $(MAKE) -C test -- cgit v1.2.3