summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2012-01-20 14:53:33 +0100
committerSimon Josefsson <simon@josefsson.org>2012-01-20 14:53:33 +0100
commite5c0a4a557104fa88b2677a1406f95f40a1c6db9 (patch)
treee0f1d36c72c8fa6904ef2136c74f04020bb7ff86 /cfg.mk
parent2abcc5719e4cd4a38b4efd850c44b224d134ad81 (diff)
downloadgnutls-e5c0a4a557104fa88b2677a1406f95f40a1c6db9.tar.gz
Add rules to generate clang analysis.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 82310f8443..ef9aed3464 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -93,6 +93,25 @@ upload-web-coverage:
cd $(htmldir) && \
cvs commit -m "Update." coverage
+# Clang
+
+clang:
+ make clean
+ scan-build ./configure
+ rm -rf scan.tmp
+ scan-build -o scan.tmp make
+
+clang-copy:
+ rm -fv `find $(htmldir)/clang -type f | grep -v CVS`
+ mkdir -p $(htmldir)/clang/
+ cp -rv scan.tmp/*/* $(htmldir)/clang/
+
+clang-upload:
+ cd $(htmldir) && \
+ cvs add clang || true && \
+ cvs add clang/*.css clang/*.js clang/*.html || true && \
+ cvs commit -m "Update." clang
+
# Release
ChangeLog: