diff options
| author | lonkaars <loek@pipeframe.xyz> | 2022-12-10 13:49:39 +0100 |
|---|---|---|
| committer | lonkaars <loek@pipeframe.xyz> | 2022-12-10 13:49:39 +0100 |
| commit | 931fbf84e5a46649c9adf073e9b3d1d776af0b54 (patch) | |
| tree | d16f098aae7f646534f2f6cb8dc2820040a3384f /confui/makefile | |
| parent | 2baf3b730dc20c85e4a5aa2fb609dd4703695908 (diff) | |
fix clang-format configuration and run `clang-format`
Diffstat (limited to 'confui/makefile')
| -rw-r--r-- | confui/makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/confui/makefile b/confui/makefile index 20a7c7e..930daed 100644 --- a/confui/makefile +++ b/confui/makefile @@ -12,3 +12,15 @@ confui: $(OBJECTS) ../shared/%.o: ../shared/%.c $(CC) -c $(CFLAGS) -w $< -o $@ + +FMT_FILES := $(DIST) +FMT_FILES := $(filter-out .%,$(FMT_FILES)) # filter hidden files +FMT_FILES := $(filter-out /%,$(FMT_FILES)) # filter files outside working directory +FMT_FILES := $(filter-out %.conf,$(FMT_FILES)) # filter *.conf +FMT_FILES := $(filter-out %.pri,$(FMT_FILES)) # filter *.pri +FMT_FILES := $(filter-out %.prf,$(FMT_FILES)) # filter *.prf +FMT_FILES := $(filter-out %.pro,$(FMT_FILES)) # filter *.pro + +format: + clang-format -i $(FMT_FILES) + clang-tidy --fix-errors $(FMT_FILES) |