summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-15 13:39:32 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-15 13:39:32 -0700
commit6f039027f8ebff929d6ee1bf4a357832154a9ad3 (patch)
treef0c13a89ba6a9651d82fe013034cd42a1824e2de /Makefile
parenta5c3cda8acf1cb22f04b41c9edcc06938468b12a (diff)
Improved clang-check target.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
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); \