From 2ec2b4eda29aa2df87bfc841077484f7b88ea9a3 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 15 Feb 2011 15:29:03 +0000 Subject: [PATCH] Add clang pseudo-target. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index f98f34c3b..1f6da2563 100644 --- a/Makefile +++ b/Makefile @@ -121,6 +121,19 @@ native-dist: etags: etags FL/*.H FL/*.h src/*.cxx src/*.c src/*.h src/xutf8/*.h src/xutf8/*.c cairo/*.cxx fluid/*.h fluid/*.cxx test/*.h test/*.cxx +# +# Run the clang.llvm.org static code analysis tool on the C sources. +# (at least checker-231 is required for scan-build to work this way) +# + +.PHONY: clang clang-changes +clang: + $(RM) -r clang + scan-build -V -k -o `pwd`/clang $(MAKE) $(MFLAGS) clean all +clang-changes: + scan-build -V -k -o `pwd`/clang $(MAKE) $(MFLAGS) all + + # # End of "$Id$". #