summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbj <jbj>2016-03-29 18:04:14 +0000
committerjbj <jbj>2016-03-29 18:04:14 +0000
commit87d9376d34a0d33054d8e3b4759db60504ce8dca (patch)
tree0e8712cd417b62c6fd007ca502ae7c5a1d14b6bd
parent585f905488d92602255e081949836234e2c67b64 (diff)
downloadlibpopt-87d9376d34a0d33054d8e3b4759db60504ce8dca.tar.gz
- coverity: add covscan target.
-rw-r--r--Makefile.am19
1 files changed, 14 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index c5c44ea..156d690 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -188,14 +188,23 @@ doxygen: Doxyfile
$(DOXYGEN)
endif
-# --- scan.coverity.com manual submission in popt.tgz
+# --- scan.coverity.com manual submission in $(PACKAGE).tgz
COVDIR = cov-int
COVBUILD = cov-build --dir $(COVDIR)
-covscan::
- rm -rf $(COVDIR) popt.tgz
+COVFILE = $(PACKAGE)-scan.tgz
+COVSITE = https://scan.coverity.com/builds?project=$(PACKAGE_NAME)
+covscan:
+ rm -rf $(COVDIR) $(PACKAGE).tgz
make clean
- $(COVBUILD) make
- tar czf popt.tgz $(COVDIR)
+ $(COVBUILD) make -j4
+ tar czf $(COVFILE) $(COVDIR)
+ curl --form project=$(PACKAGE) \
+ --form token=HEYLAdeYklp2QrsRMaHVAw \
+ --form email=n3npq@mac.com \
+ --form file=@$(COVFILE) \
+ --form version=$(PACKAGE_VERSION) \
+ --form description=$$(date -u "+%Y%m%d.%H%M%S") \
+ $(COVSITE)
if HAVE_LCOV
# run lcov from scratch, always