]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
make distcheck now runs code via clang static analyzer if it exists.
authorTimo Sirainen <tss@iki.fi>
Tue, 13 Apr 2010 13:02:49 +0000 (16:02 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 13 Apr 2010 13:02:49 +0000 (16:02 +0300)
--HG--
branch : HEAD

Makefile.am

index ff031be5eef518577c4cb1dfcce9a99d95d7cb09..1c3265bf9fbe831847b3b0a9cf24021d36abdefc 100644 (file)
@@ -67,3 +67,15 @@ install-exec-hook:
 CLEANFILES = $(datafiles)
 
 DISTCLEANFILES = $(top_builddir)/dovecot-version.h
+
+distcheck-hook:
+       if which scan-build > /dev/null; then \
+         cd $(distdir)/_build; \
+         scan-build -o scan-reports ../configure --with-ldap=auto --with-pgsql=auto --with-mysql=auto --with-sqlite=auto --with-solr=auto --with-gssapi=auto --with-libwrap=auto; \
+         rm -rf scan-reports; \
+         scan-build -o scan-reports make 2>&1 || exit 1; \
+         if ! rmdir scan-reports 2>/dev/null; then \
+           exit 1; \
+         fi; \
+         cd ../..; rm -rf $(distdir)/_build/*; \
+       fi