summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dc82967..6f8f22e 100644
--- a/Makefile
+++ b/Makefile
@@ -93,8 +93,10 @@ libFuzzer:
test/run-cmark-fuzz $(CMARK_FUZZ)
lint: $(BUILDDIR)
+ errs=0 ; \
for f in `ls src/*.[ch] | grep -v "scanners.c"` ; \
- do echo $$f ; clang-tidy -header-filter='^build/.*' -p=build -warnings-as-errors='*' $$f || exit 1 ; done
+ do echo $$f ; clang-tidy -header-filter='^build/.*' -p=build -warnings-as-errors='*' $$f || errs=1 ; done ; \
+ exit $$errs
mingw:
mkdir -p $(MINGW_BUILDDIR); \