Allow make checkstyle and paxscript in build dir
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Chris Dunlop <chris@onthe.net.au> Closes #7202
This commit is contained in:
parent
faa97c1619
commit
26cb4b8791
13
Makefile.am
13
Makefile.am
|
@ -45,19 +45,20 @@ checkstyle: cstyle shellcheck flake8 commitcheck mancheck testscheck
|
||||||
|
|
||||||
commitcheck:
|
commitcheck:
|
||||||
@if git rev-parse --git-dir > /dev/null 2>&1; then \
|
@if git rev-parse --git-dir > /dev/null 2>&1; then \
|
||||||
scripts/commitcheck.sh; \
|
${top_srcdir}/scripts/commitcheck.sh; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cstyle:
|
cstyle:
|
||||||
@find ${top_srcdir} -name '*.[hc]' ! -name 'zfs_config.*' \
|
@find ${top_srcdir} -name '*.[hc]' ! -name 'zfs_config.*' \
|
||||||
! -name '*.mod.c' -type f -exec scripts/cstyle.pl -cpP {} \+
|
! -name '*.mod.c' -type f \
|
||||||
|
-exec ${top_srcdir}/scripts/cstyle.pl -cpP {} \+
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
@if type shellcheck > /dev/null 2>&1; then \
|
@if type shellcheck > /dev/null 2>&1; then \
|
||||||
shellcheck --exclude=SC1090 --format=gcc \
|
shellcheck --exclude=SC1090 --format=gcc \
|
||||||
$$(find scripts/*.sh -type f) \
|
$$(find ${top_srcdir}/scripts/*.sh -type f) \
|
||||||
$$(find cmd/zed/zed.d/*.sh -type f) \
|
$$(find ${top_srcdir}/cmd/zed/zed.d/*.sh -type f) \
|
||||||
$$(find cmd/zpool/zpool.d/* -executable); \
|
$$(find ${top_srcdir}/cmd/zpool/zpool.d/* -executable); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mancheck:
|
mancheck:
|
||||||
|
@ -88,7 +89,7 @@ cppcheck:
|
||||||
|
|
||||||
paxcheck:
|
paxcheck:
|
||||||
@if type scanelf > /dev/null 2>&1; then \
|
@if type scanelf > /dev/null 2>&1; then \
|
||||||
scripts/paxcheck.sh ${top_srcdir}; \
|
${top_srcdir}/scripts/paxcheck.sh ${top_srcdir}; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
flake8:
|
flake8:
|
||||||
|
|
Loading…
Reference in New Issue