From b61f4065f76f3868a6c597f37932de2e65e4fa97 Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Thu, 21 Aug 2014 12:05:08 -0400 Subject: build: add support for Coverity scanning Thanks to the folks at Coverity for supporting Open Source projects such as this one. Signed-off-by: Paul Moore --- Makefile.am | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 4709b78..7fe0787 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,3 +34,20 @@ check-build: all check-syntax: @./tools/check-syntax + +if COVERITY +coverity-build: clean + cov-build --dir cov-int ${MAKE} ${AM_MAKEFLAGS} check-build +endif + +if COVERITY +coverity-tarball: coverity-build + @git rev-parse HEAD &> /dev/null && \ + rev=$$(git rev-parse HEAD | cut -c1-8) || \ + rev=$$(date --iso-8601=date); \ + tar czf libseccomp-coverity_$$rev.tar.gz cov-int; \ + ls -l libseccomp-coverity_$$rev.tar.gz +endif + +clean-local: + ${RM} -rf cov-int libseccomp-coverity_*.tar.gz -- cgit v1.2.1