From 51340fa75960ad44997175139eabd8e80753b4a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 24 May 2018 11:21:03 +0200 Subject: Improve the cppcheck and scan-build targets --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8beee18..46e7d70 100644 --- a/Makefile +++ b/Makefile @@ -45,11 +45,14 @@ ci-setup:: distclean-c_src-env check:: cppcheck scan-build cppcheck: - cppcheck -f --quiet --error-exitcode=2 --enable=all --inconclusive --std=posix -I/usr/include/SDL2 c_src/ + $(gen_verbose) cppcheck -f -q \ + --error-exitcode=2 --enable=warning,style \ + --inconclusive --std=posix -I/usr/include/SDL2 \ + -U_System -USDL_CreateThread c_src/ scan-build: - make clean - scan-build make + $(verbose) $(MAKE) clean + $(gen_verbose) scan-build $(MAKE) hello_sdl:: all erlc -o examples/hello_sdl examples/hello_sdl/*.erl -- cgit v1.2.3