Use a cppcheck-build-dir

This commit is contained in:
Dianne Skoll
2025-10-07 15:44:37 -04:00
parent 690d5bd429
commit 6c67dfeb72
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@@ -36,3 +36,4 @@ tests/once.timestamp
tests/test.out
tests/tz.out
www/Makefile
_cppcheck

View File

@@ -109,7 +109,9 @@ depend:
# distributions, etc.
cppcheck:
cppcheck -j`nproc` -v --force --enable=all --suppress=missingIncludeSystem --suppress=ConfigurationNotChecked --suppress=unmatchedSuppression --suppress=variableScope --inline-suppr --check-level=exhaustive .
mkdir -p ../_cppcheck
cppcheck -j`nproc` -v --force --enable=all --suppress=missingIncludeSystem --suppress=ConfigurationNotChecked --suppress=unmatchedSuppression --suppress=variableScope --inline-suppr --check-level=exhaustive --cppcheck-build-dir=../_cppcheck .
-rm -rf ../_cppcheck
# Build a tar file based on all files checked into git.
distro: