From fcab1ec1a1a71265d86ae0b615a091c674041654 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 12 Aug 2013 23:13:54 +0200 Subject: build: Add Makefile target for Coverity scanner Add a Makefile target to build and upload a snapshot of netsniff-ng to the Coverity scanner. The variables COV_EMAIL and COV_PASSWD need to be set accordingly: make coverity COV_EMAIL=tklauser@distanz.ch COV_PASSWD=... Currently the sub-make which is part of the cov-built call issues warnings about undefined variables from the template. This can be ignored, the build works just fine. Signed-off-by: Tobias Klauser --- Cmds | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Cmds') diff --git a/Cmds b/Cmds index f2fc8cb..704ab7e 100644 --- a/Cmds +++ b/Cmds @@ -26,6 +26,8 @@ else INSTX = echo -e " INST\t$(1)" && install -C $(1) $(2)/$(shell basename $(1)) endif +MKDIR = echo -e " MKDIR\t$(1)" && mkdir -p $(1) + RM = echo -e " RM\t$(1)" && rm -rf $(1) RMDIR = echo -e " RM\t$(1)" && rmdir --ignore-fail-on-non-empty $(1) 2> /dev/null || true @@ -39,3 +41,4 @@ GIT_LOG = git shortlog -n $(shell git tag | tail -n2 | head -n1)..HEAD GIT_REM = git ls-files -o | xargs rm -rf GIT_PEOPLE = git log --no-merges $(shell git tag | tail -n2 | head -n1)..HEAD | grep Author: | cut -d: -f2 | \ cut -d\< -f1 | sort | uniq -c | sort -nr +GIT_VERSION = git describe --always -- cgit v1.2.3-54-g00ecf