aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-05-24 11:21:03 +0200
committerLoïc Hoguin <[email protected]>2018-05-24 11:21:03 +0200
commit51340fa75960ad44997175139eabd8e80753b4a3 (patch)
tree46ca78fb3ef278a647577b7ddc38a1a65a09d9af
parentf9b4933e16ebcdc1db3af32b8da4fa2416f27acc (diff)
downloadesdl2-51340fa75960ad44997175139eabd8e80753b4a3.tar.gz
esdl2-51340fa75960ad44997175139eabd8e80753b4a3.tar.bz2
esdl2-51340fa75960ad44997175139eabd8e80753b4a3.zip
Improve the cppcheck and scan-build targets
-rw-r--r--Makefile9
1 files 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