Makefile: respect V=1 for checks

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13316
This commit is contained in:
наб 2022-04-12 00:56:32 +02:00 committed by Brian Behlendorf
parent 779ac93e96
commit c1851bf081
1 changed files with 8 additions and 8 deletions

View File

@ -104,7 +104,7 @@ checkstyle: codecheck commitcheck
PHONY += commitcheck PHONY += commitcheck
commitcheck: commitcheck:
@if git rev-parse --git-dir > /dev/null 2>&1; then \ $(AM_V_at)if git rev-parse --git-dir > /dev/null 2>&1; then \
${top_srcdir}/scripts/commitcheck.sh; \ ${top_srcdir}/scripts/commitcheck.sh; \
fi fi
@ -115,7 +115,7 @@ cstyle_line = -exec ${top_srcdir}/scripts/cstyle.pl -cpP {} +
endif endif
CHECKS += cstyle CHECKS += cstyle
cstyle: cstyle:
@find ${top_srcdir} -name build -prune \ $(AM_V_at)find $(top_srcdir) -name build -prune \
-o -type f -name '*.[hc]' \ -o -type f -name '*.[hc]' \
! -name 'zfs_config.*' ! -name '*.mod.c' \ ! -name 'zfs_config.*' ! -name '*.mod.c' \
! -name 'opt_global.h' ! -name '*_if*.h' \ ! -name 'opt_global.h' ! -name '*_if*.h' \
@ -129,7 +129,7 @@ cstyle:
filter_executable = -exec test -x '{}' \; -print filter_executable = -exec test -x '{}' \; -print
CHECKS += testscheck CHECKS += testscheck
testscheck: testscheck:
@[ $$(find $(top_srcdir)/tests/zfs-tests -type f \ $(AM_V_at)[ $$(find $(top_srcdir)/tests/zfs-tests -type f \
\( -name '*.ksh' -not $(filter_executable) \) -o \ \( -name '*.ksh' -not $(filter_executable) \) -o \
\( -name '*.kshlib' $(filter_executable) \) -o \ \( -name '*.kshlib' $(filter_executable) \) -o \
\( -name '*.shlib' $(filter_executable) \) -o \ \( -name '*.shlib' $(filter_executable) \) -o \
@ -138,7 +138,7 @@ testscheck:
CHECKS += vcscheck CHECKS += vcscheck
vcscheck: vcscheck:
@if git rev-parse --git-dir > /dev/null 2>&1; then \ $(AM_V_at)if git rev-parse --git-dir > /dev/null 2>&1; then \
git ls-files . --exclude-standard --others | \ git ls-files . --exclude-standard --others | \
awk '{c++; print} END {if(c>0) exit 1}' ; \ awk '{c++; print} END {if(c>0) exit 1}' ; \
fi fi
@ -152,16 +152,16 @@ lint: cppcheck paxcheck
PHONY += paxcheck PHONY += paxcheck
paxcheck: paxcheck:
@if type scanelf > /dev/null 2>&1; then \ $(AM_V_at)if type scanelf > /dev/null 2>&1; then \
${top_srcdir}/scripts/paxcheck.sh ${top_builddir}; \ $(top_srcdir)/scripts/paxcheck.sh $(top_builddir); \
else \ else \
echo "skipping paxcheck because scanelf is not installed"; \ echo "skipping paxcheck because scanelf is not installed"; \
fi fi
CHECKS += flake8 CHECKS += flake8
flake8: flake8:
@if type flake8 > /dev/null 2>&1; then \ $(AM_V_at)if type flake8 > /dev/null 2>&1; then \
flake8 ${top_srcdir}; \ flake8 $(top_srcdir); \
else \ else \
echo "skipping flake8 because flake8 is not installed"; \ echo "skipping flake8 because flake8 is not installed"; \
fi fi