blob: 2e22e2060374cb7989cafbae2f525c2ba38b6332 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
all: confui
ifeq ($(wildcard confui.mk),)
confui.mk:
qmake confui.pro -o confui.mk
endif
include confui.mk
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)
compile_commands:
compiledb make -Bn
|