diff --git a/.gitignore b/.gitignore index 654591f3..cef71a87 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,4 @@ tests/once.timestamp tests/test.out tests/tz.out www/Makefile +_cppcheck diff --git a/src/Makefile.in b/src/Makefile.in index 19be79cb..5424bfda 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -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: