From a67a187335063234cdd255a8d446557fbfb5ee4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Mon, 17 Jan 2022 16:37:16 +0100 Subject: [PATCH] Makefile: simplify away xargs(1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #12979 --- Makefile.am | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Makefile.am b/Makefile.am index 37a9bfdf8..79f8ec07b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -72,7 +72,7 @@ distclean-local:: -o -name 'core' -o -name 'Makefile' -o -name 'Module.symvers' \ -o -name '*.order' -o -name '*.markers' -o -name '*.gcda' \ -o -name '*.gcno' \) \ - -type f -print | xargs $(RM) + -type f -delete all-local: -[ -x ${top_builddir}/scripts/zfs-tests.sh ] && \ @@ -156,21 +156,14 @@ PHONY += mancheck mancheck: ${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 testscheck: - @find ${top_srcdir}/tests/zfs-tests -type f \ + @[ $$(find ${top_srcdir}/tests/zfs-tests -type f \ \( -name '*.ksh' -not ${filter_executable} \) -o \ \( -name '*.kshlib' ${filter_executable} \) -o \ \( -name '*.shlib' ${filter_executable} \) -o \ \( -name '*.cfg' ${filter_executable} \) | \ - xargs -r stat ${stat_fmt} | \ - awk '{c++; print} END {if(c>0) exit 1}' + tee /dev/stderr | wc -l) -eq 0 ] PHONY += vcscheck vcscheck: @@ -213,13 +206,13 @@ PHONY += ctags ctags: $(RM) tags find $(top_srcdir) -name '.?*' -prune \ - -o -type f -name '*.[hcS]' -print | xargs ctags -a + -o -type f -name '*.[hcS]' -exec ctags -a {} + PHONY += etags etags: $(RM) TAGS find $(top_srcdir) -name '.?*' -prune \ - -o -type f -name '*.[hcS]' -print | xargs etags -a + -o -type f -name '*.[hcS]' -exec etags -a {} + PHONY += cscopelist cscopelist: