From 1d5da7c3ef069309036067e155c860145783a33f Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Thu, 27 Jun 2024 13:20:45 -0700 Subject: [PATCH] improve tab_check Makefile rule We needed to use the proper make variables. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a0951218c..81b09395d 100644 --- a/Makefile +++ b/Makefile @@ -317,9 +317,9 @@ help: # verify that there are no leading ASCII tabs in leading whitespace in markdown files tab_check: @echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-=' - @TAB_LIST="$$(find * \( -name NOTES -o -name tmp -o -name markdown.md \) -prune -o \ + @TAB_LIST="$$(${FIND} * \( -name NOTES -o -name tmp -o -name markdown.md \) -prune -o \ -type f -name '*.md' -print0 | \ - xargs -0 grep -E -l '\t')"; \ + ${XARGS} -0 ${GREP} -E -l '\t')"; \ if [[ -n $$TAB_LIST ]]; then \ echo "$@: ERROR: ASCII tab found in markdown file(s)" 1>&2 ; \ echo "$0: Warning: list of offending markdown file(s) starts below" 1>&2 ; \