]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - Makefile
Merge changes from CUPS 1.4svn-r7791.
[thirdparty/cups.git] / Makefile
index 67fd9d84f31665fb2df668f5af788ac6b54b6322..9074d67315942b2853a44829c8f1e48e1d87581e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -103,6 +103,22 @@ depend:
        done
 
 
+#
+# Run the clang.llvm.org static code analysis tool on the C sources.
+#
+
+.PHONY: clang
+clang:
+       if test ! -d clang; then \
+               mkdir clang; \
+       else \
+               rm -rf clang/*; \
+       fi
+       $(MAKE) $(MFLAGS) CC="scan-build -o ../clang $(CC)" \
+               CXX="scan-build -o ../clang $(CXX)" clean all
+       test `ls -1 clang | wc -l` != 0 || exit 1
+
+
 #
 # Generate a ctags file...
 #