diff options
author | Thorsten Behrens <thb@openoffice.org> | 2010-04-14 13:16:01 +0200 |
---|---|---|
committer | Thorsten Behrens <thb@openoffice.org> | 2010-04-14 13:20:07 +0200 |
commit | 660018614680a9b879046880ab4ec2df74228c95 (patch) | |
tree | eabb3707a874df9e11bace5f6b0218697cb4459e /Makefile.shared | |
parent | 1b28d9da9fc205ef8398468c64a44a556012cec9 (diff) |
Added preliminary cppcheck support
"Cppcheck is an analysis tool for C/C++ code. Unlike C/C++ compilers
and many other analysis tools, we don't detect syntax errors.
Cppcheck only detects the types of bugs that the compilers normally
fail to detect. The goal is no false positives."
* Makefile.shared: added 'cppcheck' target
* bin/mkcppcheck.sh: the wrapper script.
Diffstat (limited to 'Makefile.shared')
-rw-r--r-- | Makefile.shared | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.shared b/Makefile.shared index a4e1456fb..e80ac3f8d 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -139,6 +139,10 @@ docs: $(BUILDDIR)/docs/index.html $(BUILDDIR)/docs/index.html: $(STAMP_DIR)/build cd $(OOBUILDDIR); $(TOOLSDIR)/bin/mkdocs.sh $(BUILDDIR)/docs $(TOOLSDIR)/bin/doxygen.cfg +cppcheck: $(STAMP_DIR)/build.cppcheck +$(STAMP_DIR)/build.cppcheck: $(STAMP_DIR)/build + cd $(OOBUILDDIR); $(TOOLSDIR)/bin/mkcppcheck.sh -s -j $(BUILD_NCPUS) + gitignore : $(OOBUILDDIR)/.gitignore $(OOBUILDDIR)/.gitignore : $(OOBUILDDIR)/unpack cd $(OOBUILDDIR); $(TOOLSDIR)/bin/create-gitignores.sh @@ -160,6 +164,7 @@ help: @echo " * id: generates the GNU ID database" @echo " * tags: generates the tags file" @echo " * docs: generates (partial) doxygen src docs" + @echo " * cppcheck: run cppcheck over (most of) the source tree" @echo " * gitignore: creates the default .gitignore file in the unpacked sources" @echo " * smoketest: runs the automated tests" @echo " * patch.apply: applies the patches to the sources" |