Makefile: Add support for make check to run cppcheck

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2014-04-12 16:08:30 +02:00
1 parent 7cf7591f0a
commit 7ada824e3e
2 files changed
+4

No files matched your search

+3
View File
@@ -141,6 +141,9 @@ distclean: clean
$(MAKE) -C libite $@
$(MAKE) -C plugins $@
check:
$(CHECK) *.c plugins/*.c libite/*.c
dist:
@echo "Building xz tarball of $(PKG) in parent dir..."
git archive --format=tar --prefix=$(PKG)/ $(VERSION) | xz >../$(ARCHIVE)
+1
View File
@@ -5,6 +5,7 @@ ROOTDIR ?= $(TOPDIR)
JUNK = *~ *.bak *.aux *.dvi *.idx *.ind *.log *.ps *.map .*.d DEADJOE semantic.cache *.gdb *.elf core core.*
MAKE := @$(MAKE)
MAKEFLAGS = --no-print-directory --silent
CHECK := cppcheck $(CPPFLAGS) --quiet --enable=all
INSTALL := install --backup=off
STRIPINST := $(INSTALL) -s --strip-program=$(CROSS)strip -m 0755