aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index d5e46a8..4815a46 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -312,9 +312,11 @@ check-local: $(check_PROGRAMS)
# Used by maintainers to check the source code with cppcheck.
check-cppcheck:
- cd $(abs_top_srcdir) && cppcheck -q --error-exitcode=2 \
- --suppressions-list=tests/data/cppcheck.supp \
- --enable=warning,performance,portability,style .
+ cd $(abs_top_srcdir) && \
+ find . -name .git -prune -o -name '*.[ch]' -print \
+ | cppcheck -q --force --error-exitcode=2 --file-list=- \
+ --suppressions-list=tests/data/cppcheck.supp \
+ --enable=warning,performance,portability,style
# Alas, we have to disable this check because there's no way to do an
# uninstall from Perl.