diff --git a/Makefile b/Makefile index 009baf2..d413912 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ clean: @$(RM) -rf $(OBJ_DIR) $(LIB_DIR) docs lint: compile_commands.json - /usr/bin/xcrun -r clangd --enable-config --clang-tidy --log=error $(SOURCES:%=--check=%) - ( brew list -q --formula llvm &>/dev/null && $(shell brew --prefix llvm)/bin/scan-build -enable-checker security -enable-checker unix -enable-checker valist $(MAKE) -B dylib ) || true + for file in $(SOURCES); do /usr/bin/xcrun -r clangd --enable-config --clang-tidy --log=error --check=$$file; done + $(shell brew --prefix llvm)/bin/scan-build -enable-checker security -enable-checker unix -enable-checker valist $(MAKE) -B dylib -include $(OBJECTS:.o=.d)