mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Makefile: simplify away xargs(1)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12979
This commit is contained in:
parent
c5d8cd63ae
commit
a67a187335
17
Makefile.am
17
Makefile.am
@ -72,7 +72,7 @@ distclean-local::
|
|||||||
-o -name 'core' -o -name 'Makefile' -o -name 'Module.symvers' \
|
-o -name 'core' -o -name 'Makefile' -o -name 'Module.symvers' \
|
||||||
-o -name '*.order' -o -name '*.markers' -o -name '*.gcda' \
|
-o -name '*.order' -o -name '*.markers' -o -name '*.gcda' \
|
||||||
-o -name '*.gcno' \) \
|
-o -name '*.gcno' \) \
|
||||||
-type f -print | xargs $(RM)
|
-type f -delete
|
||||||
|
|
||||||
all-local:
|
all-local:
|
||||||
-[ -x ${top_builddir}/scripts/zfs-tests.sh ] && \
|
-[ -x ${top_builddir}/scripts/zfs-tests.sh ] && \
|
||||||
@ -156,21 +156,14 @@ PHONY += mancheck
|
|||||||
mancheck:
|
mancheck:
|
||||||
${top_srcdir}/scripts/mancheck.sh ${top_srcdir}/man ${top_srcdir}/tests/test-runner/man
|
${top_srcdir}/scripts/mancheck.sh ${top_srcdir}/man ${top_srcdir}/tests/test-runner/man
|
||||||
|
|
||||||
if BUILD_LINUX
|
|
||||||
stat_fmt = -c '%A %n'
|
|
||||||
else
|
|
||||||
stat_fmt = -f '%Sp %N'
|
|
||||||
endif
|
|
||||||
|
|
||||||
PHONY += testscheck
|
PHONY += testscheck
|
||||||
testscheck:
|
testscheck:
|
||||||
@find ${top_srcdir}/tests/zfs-tests -type f \
|
@[ $$(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 \
|
||||||
\( -name '*.cfg' ${filter_executable} \) | \
|
\( -name '*.cfg' ${filter_executable} \) | \
|
||||||
xargs -r stat ${stat_fmt} | \
|
tee /dev/stderr | wc -l) -eq 0 ]
|
||||||
awk '{c++; print} END {if(c>0) exit 1}'
|
|
||||||
|
|
||||||
PHONY += vcscheck
|
PHONY += vcscheck
|
||||||
vcscheck:
|
vcscheck:
|
||||||
@ -213,13 +206,13 @@ PHONY += ctags
|
|||||||
ctags:
|
ctags:
|
||||||
$(RM) tags
|
$(RM) tags
|
||||||
find $(top_srcdir) -name '.?*' -prune \
|
find $(top_srcdir) -name '.?*' -prune \
|
||||||
-o -type f -name '*.[hcS]' -print | xargs ctags -a
|
-o -type f -name '*.[hcS]' -exec ctags -a {} +
|
||||||
|
|
||||||
PHONY += etags
|
PHONY += etags
|
||||||
etags:
|
etags:
|
||||||
$(RM) TAGS
|
$(RM) TAGS
|
||||||
find $(top_srcdir) -name '.?*' -prune \
|
find $(top_srcdir) -name '.?*' -prune \
|
||||||
-o -type f -name '*.[hcS]' -print | xargs etags -a
|
-o -type f -name '*.[hcS]' -exec etags -a {} +
|
||||||
|
|
||||||
PHONY += cscopelist
|
PHONY += cscopelist
|
||||||
cscopelist:
|
cscopelist:
|
||||||
|
Loading…
Reference in New Issue
Block a user