diff --git a/Makefile.am b/Makefile.am index 37a9bfdf86..79f8ec07b8 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: