From 193d0f912dcb8ffc18c8f93ad2893dc6c99efde2 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Wed, 25 Jul 2018 14:48:00 +0100 Subject: [PATCH] build: add target to run cppcheck. --- Makefile | 3 +++ src/Makefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 187794e..0a75f22 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,9 @@ all: check: $(MAKE) -C src check +run-cppcheck: + $(MAKE) -C src run-cppcheck + install: $(MAKE) -C src install $(MAKE) -C doc/manpages install diff --git a/src/Makefile b/src/Makefile index 117efb1..3745a42 100644 --- a/src/Makefile +++ b/src/Makefile @@ -32,6 +32,9 @@ $(objects): %.o: %.cc check: $(MAKE) -C tests check +run-cppcheck: + cppcheck --std=c++11 -Iincludes -Idasynq --force --enable=all *.cc 2>../cppcheck-report.txt + install: all install -d $(DESTDIR)$(SBINDIR) install -s dinit dinitctl $(SHUTDOWN) $(DESTDIR)$(SBINDIR) -- 2.25.1