1 2 3 4 5 6 7 8 9 10
.PHONY: format SRCS := SRCS += $(wildcard *.c) SRCS += $(wildcard *.h) format: clang-format -i $(SRCS) clang-tidy --fix-errors $(SRCS)