From 6f039027f8ebff929d6ee1bf4a357832154a9ad3 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 15 Jul 2015 13:39:32 -0700 Subject: Improved clang-check target. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4c8577c..c29093f 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ BENCHINP?=README.md VERSION?=$(SPECVERSION) RELEASE?=CommonMark-$(VERSION) INSTALL_PREFIX?=/usr/local +CLANG_CHECK?=clang-check .PHONY: all cmake_build spec leakcheck clean fuzztest dingus upload test update-site upload-site debug ubsan asan mingw archive bench astyle update-spec afl clang-check @@ -78,8 +79,8 @@ afl: -t 100 \ $(CMARK) $(CMARK_OPTS) -clang-check: - find src -name '*.c' | xargs $$CLANG_CHECK_PATH/bin/clang-check -p build -analyze +clang-check: all + ${CLANG_CHECK} -p build -analyze src/*.c mingw: mkdir -p $(MINGW_BUILDDIR); \ -- cgit v1.2.3