diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-20 13:02:08 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-20 13:02:08 +0100 |
commit | d4dd3ceab2b95c26f3b07092a5c80f47eab18110 (patch) | |
tree | c39972a199aa02f0772b40fdb27d9c0f566047da /src | |
parent | 0476a8e9dbe7afb422862f7b1c15aaed7f3c416e (diff) |
split format/lint
Diffstat (limited to 'src')
-rw-r--r-- | src/makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/makefile b/src/makefile index 5f80204..a0e8f02 100644 --- a/src/makefile +++ b/src/makefile @@ -1,6 +1,9 @@ .PHONY: FORCE -FMT := $(shell git ls-files '*.c' '*.cpp' '*.h' '*.hpp') format: FORCE - clang-tidy -p build/compile_commands.json --fix-errors $(FMT) + $(MAKE) -C .. $@ + +LINT := $(shell git ls-files '*.c' '*.cpp' '*.h' '*.hpp') +lint: FORCE + clang-tidy -p build/compile_commands.json --fix-errors $(LINT) |