diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-05-13 15:40:56 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-05-13 15:40:56 -0700 |
commit | b1dab7360ee9104e1c81d2010369bb2075811eb7 (patch) | |
tree | 2edd3efbd54185258b4bb0a9e764676f55572e33 /Makefile | |
parent | 4a47e6a34ce136658f790d78c9670efe2415a78e (diff) |
Add lint target to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); \ |