blob: 930daeda5fa537406b64d608a3c801418ece91dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
all: confui
ifeq ($(wildcard confui.mk),)
confui.mk:
qmake confui.pro -o confui.mk
endif
include confui.mk
OBJECTS += $(patsubst %.c,%.o, $(wildcard ../shared/*.c))
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)
|