From f1af7fddc0869e67ae41489dac86cb20a77583fa Mon Sep 17 00:00:00 2001 From: tmeissner Date: Fri, 15 May 2015 01:36:07 +0200 Subject: [PATCH] new target 'check' to run cppcheck on all *.c files --- 21st_century_c/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/21st_century_c/Makefile b/21st_century_c/Makefile index 95bbb28..3cb3a98 100644 --- a/21st_century_c/Makefile +++ b/21st_century_c/Makefile @@ -13,6 +13,10 @@ simple_cplx : cplx.h complex.c simple_cplx.c .PHONY : all all : boxes show_tree simple_cplx +.PHONY : check +check : *.h *.c + cppcheck --enable=warning --enable=style *.c + .PHONY : clean clean : rm -f boxes