manual_title = Core GNU utilities
url_dir_list = https://ftp.gnu.org/gnu/$(PACKAGE)
VC_LIST_ALWAYS_EXCLUDE_REGEX = src/blake2/.*$$
local-checks-to-skip = \ sc_proper_name_utf8_requires_ICONV
bootstrap-tools = autoconf,automake,gnulib,bison
export VERBOSE = yes
export XZ_OPT = -8e
old_NEWS_hash = 48668bce5e01bf434b1d1ff10d141884
_makefile_at_at_check_exceptions = ' && !/^cu_install_prog/ && !/dynamic-dep/'
_hv_file ?= $(srcdir)/tests/misc/help-version
dd = $(srcdir)/src/dd.c sc_dd_O_FLAGS: @rm -f $@.1 $@.2 @{ echo O_FULLBLOCK; echo O_NOCACHE; \ perl -nle '/^ +| (O_\w)$$/ and print $$1' $(dd); } | sort > $@.1 @{ echo O_NOFOLLOW; perl -nle '/{"[a-z]+",\s(O_\w+)},/ and print $$1' \ $(dd); } | sort > $@.2 @diff -u $@.1 $@.2; diff=$$?; \ rm -f $@.1 $@.2; \ test "$$diff" = 0 \ || { echo '$(ME): $(dd) has inconsistent O_ flag lists'>&2; \ exit 1; }
dd_c = $(srcdir)/src/dd.c sc_dd_max_sym_length: ifneq ($(wildcard $(dd_c)),) @len=$$( (sed -n '/conversions[] =$$/,/^};/p' $(dd_c);\ sed -n '/flags[] =$$/,/^};/p' $(dd_c) ) \ |sed -n '/"/s/^[^"]"([^"])".*/\1/p'| wc -L);\ max=$$(sed -n '/^#define LONGEST_SYMBOL /s///p' $(dd_c) \ |tr -d '"' | wc -L); \ if test "$$len" = "$$max"; then :; else \ echo 'dd.c: LONGEST_SYMBOL is not longest' 1>&2; \ exit 1; \ fi endif
sc_prohibit_jm_in_m4: @grep -nE 'jm_[A-Z]' \ $$($(VC_LIST) m4 |grep '.m4$$'; echo /dev/null) && \ { echo '$(ME): do not use jm_ in m4 macro names' \ 1>&2; exit 1; } || :
sc_root_tests:
@t1=sc-root.expected; t2=sc-root.actual; \
grep -nl '^ require_root_$$' $(VC_LIST) tests
| \
sed 's|./tests/|tests/|' | sort > $$t1; \
for t in $(all_root_tests); do echo $$t; done | sort > $$t2; \
st=0; diff -u $$t1 $$t2 || st=1; \
rm -f $$t1 $$t2; \
exit $$st
sc_tests_list_consistency:
@bs="\"; \
test_extensions_rx=echo $(TEST_EXTENSIONS) \
| sed -e "s/ /|/g" -e "s/$$bs./$$bs$$bs./g"
; \
{ \
for t in $(all_tests); do echo $$t; done; \
cd $(top_srcdir); \
$(SHELL) build-aux/vc-list-files tests \
| grep -Ev '^tests/(factor/(run|create-test)|init).sh$$' \
| $(EGREP) "$$test_extensions_rx\$$"; \
} | sort | uniq -u | grep . && exit 1; :
sc_tests_executable:
@set -o noglob 2>/dev/null || set -f; \
find_ext="-name '' "printf -- "-o -name *%s " $(TEST_EXTENSIONS)
;\
find $(srcdir)/tests/ ( $$find_ext ) ! -perm -u+x -print \
| { sed "s|^$(srcdir)/||"; git ls-files $(srcdir)/tests/; } \
| sort | uniq -d \
| sed -e "s/^/$(ME): Please make test executable: /" | grep . \
&& exit 1; :
sc_ensure_gl_diffs_apply_cleanly: @find $(srcdir)/gl/ -name '*.diff' | while read p; do \ patch --fuzz=0 -f -s -d $(srcdir)/gnulib/ -p1 --dry-run < "$$p" >&2 \ || { echo "$$p" >&2; echo 'To refresh all gl patches run:' \ 'make refresh-gnulib-patches' >&2; exit 1; } \ done
sc_prohibit_colon_redirection: @cd $(srcdir)/tests && GIT_PAGER= git grep -n ': >.||' \ && { echo '$(ME): '"The leading colon in :> will hide errors" 1>&2; \ exit 1; } \ || :
sc_ensure_emit_mandatory_arg_note: @cd $(srcdir)/src && GIT_PAGER= git \ grep -l -- '^ -[^-].--.[^[]=' .c \ | xargs grep -L emit_mandatory_arg_note | grep . \ && { echo '$(ME): '"emit_mandatory_arg_note() missing" 1>&2; \ exit 1; } || :
.re-list: @sed -n '/^# include /s///p' $(srcdir)/src/system.h \ | grep -Ev 'sys/(param|file).h' \ | sed 's/ .//;;s/^["<]/^# *include [<"]/;s/.h[">]$$/\.h[">]/' \ > $@-t @mv $@-t $@
define gl_trap_ Exit () { set +e; (exit $$1); exit $$1; }; \ for sig in 1 2 3 13 15; do \ eval "trap 'Exit $$(expr $$sig + 128)' $$sig"; \ done endef
sc_system_h_headers: .re-list @if test -f $(srcdir)/src/system.h; then \ trap 'rc=$$?; rm -f .re-list; exit $$rc' 0; \ $(gl_trap_); \ grep -nE -f .re-list \ $$($(VC_LIST_EXCEPT) | grep '^($(srcdir)/)\?src/') \ && { echo '$(ME): the above are already included via system.h'\ 1>&2; exit 1; } || :; \ fi
sc_prohibit_quotes_notation: @cd $(srcdir)/src && GIT_PAGER= git grep -n "\".[`']%s'.\"" *.c \ && { echo '$(ME): '"Use quote() to avoid quoted '%s' notation" 1>&2; \ exit 1; } \ || :
sc_error_quotes: @cd $(srcdir)/src && GIT_PAGER= git grep -n 'error (.%s., [^(]);$$'\ *.c | grep -v ', q' \ && { echo '$(ME): '"Use quote() for error string arguments" 1>&2; \ exit 1; } \ || :
sc_error_shell_quotes: @cd $(srcdir)/src && \ { GIT_PAGER= git grep -E \ 'error (.%s[:"], .(name|file)[^"]);$$' .c; \ GIT_PAGER= git grep -E \ ' quote[ _].file' .c; } \ | grep -Ev '(quotef|q[^ ]*name)' \ && { echo '$(ME): '"Use quotef() for colon delimited names" 1>&2; \ exit 1; } \ || :
sc_error_shell_always_quotes: @cd $(srcdir)/src && GIT_PAGER= git grep -E \ 'error (.[^:] %s[ "]., .(name|file)[^"]);$$' \ .c | grep -Ev '(quoteaf|q[^ ]name)' \ && { echo '$(ME): '"Use quoteaf() for space delimited names" 1>&2; \ exit 1; } \ || : @cd $(srcdir)/src && GIT_PAGER= git grep -E -A1 \ 'error ([^%][^:] %s[ "]' .c | grep 'quotef' \ && { echo '$(ME): '"Use quoteaf() for space delimited names" 1>&2; \ exit 1; } \ || :
sc_die_EXIT_FAILURE: @cd $(srcdir)/src && GIT_PAGER= git grep -E \ 'error (.*_(FAILURE|INVALID)' \ && { echo '$(ME): '"Use die() instead of error" 1>&2; \ exit 1; } \ || :
sc_prohibit-quotearg: @prohibit='quotearg(_n)?(|_colon|_char|_mem) ' \ in_vc_files='.c$$' \ halt='Unstyled diagnostic quoting detected' \ $(_sc_search_regexp)
sc_sun_os_names: @grep -nEi \ 'solaris[^[:alnum:]]*2.(7|8|9|[1-9][0-9])|sunos[^[:alnum:]][6-9]' \ $$($(VC_LIST_EXCEPT)) && \ { echo '$(ME): found misuse of Sun OS version numbers' 1>&2; \ exit 1; } || :
au_dotdot = authors-dotdot
au_actual = authors-actual
sc_check-AUTHORS: $(all_programs)
@locale=en_US.UTF-8; \
LC_ALL=$$locale ./src/factor --version \
| grep ' Torbjorn ' > /dev/null \
&& { echo "$@: skipping this check"; exit 0; }; \
rm -f $(au_actual) $(au_dotdot); \
for i in ls $(all_programs) \
| sed -e 's,^src/,,' -e 's,$(EXEEXT)$$,,' \
| sed /libstdbuf/d \
| $(ASSORT) -u
; do \
test "$$i" = '[' && continue; \
exe=$$i; \
if test "$$i" = install; then \
exe=ginstall; \
elif test "$$i" = test; then \
exe='['; \
fi; \
LC_ALL=$$locale ./src/$$exe --version \
| perl -0 -p -e 's/,\n/, /gm' \
| sed -n -e '/Written by /{ s//'"$$i"': /;' \
-e 's/, and /, /; s/.$$//; p; }'; \
done > $(au_actual) && \
sed -n '/^[^ ][^ ]:/p' $(srcdir)/AUTHORS > $(au_dotdot) \
&& diff $(au_actual) $(au_dotdot) \
&& rm -f $(au_actual) $(au_dotdot)
sc_check-I18N-AUTHORS: @cd $(srcdir)/src && \ for i in $$(git grep -l -w proper_name_utf8 .c|sed 's/.c//'); do \ grep -E "^src_$${i}_LDADD"' .?= .\$$(LIBICONV)' local.mk \ > /dev/null \ || { echo "$(ME): link rules for $$i do not include" \ '$$(LIBICONV)' 1>&2; exit 1; }; \ done
sc_prohibit-c99-printf-format: @cd $(srcdir)/src && GIT_PAGER= git grep -n '%[0][jz][udx]' .c \ && { echo '$(ME): Use PRIMAX instead of %j or %z' 1>&2; exit 1; } \ || :
sc_prohibit-gl-attributes: @prohibit='attribute |(unused|pure|const)__' \ in_vc_files='.[ch]$$' \ halt='Use _GL... attribute macros' \ $(_sc_search_regexp)
FILTER_LONG_LINES = \ |^[^:]NEWS:.https{,1}://| d; \ |^[^:]man/help2man:| d; \ |^[^:]tests/misc/sha[0-9]sum..pl[-:]| d; \ |^[^:]tests/pr/|{ |^[^:]tests/pr/pr-tests:| !d; }; sc_long_lines: @wc -L /dev/null >/dev/null 2>/dev/null \ || { echo "$@: skipping: wc -L not supported"; exit 0; }; \ sed -r 1q /dev/null 2>/dev/null \ || { echo "$@: skipping: sed -r not supported"; exit 0; }; \ files=$$($(VC_LIST_EXCEPT) | xargs wc -L | sed -rn '/ total$$/d;\ s/^ *(8[1-9]|9[0-9]|[0-9]{3,}) //p'); \ halt='line(s) with more than 80 characters; reindent'; \ for file in $$files; do \ expand $$file | grep -nE '^.{80}.' | \ sed -e "s|^|$$file:|" -e '$(FILTER_LONG_LINES)'; \ done | grep . && { msg="$$halt" $(_sc_say_and_exit) } || :
sc_option_desc_uppercase: $(ALL_MANS) @grep '^\fB\-' -A1 man/*.1 | LC_ALL=C grep '.1.[A-Z][a-z]' \ && { echo 1>&2 '$@: found initial capitals in --help'; exit 1; } || :
sc_man_file_correlation: check-x-vs-1 check-programs-vs-x
.PHONY: check-x-vs-1 check-x-vs-1: @PATH=./src$(PATH_SEPARATOR)$$PATH; export PATH; \ t=$@-t; \ (cd $(srcdir)/man && ls -1 *.x) \ | sed 's/.x$$//' | $(ASSORT) > $$t; \ (echo $(patsubst man/%,%,$(ALL_MANS)) \ | tr -s ' ' '\n' | sed 's/.1$$//') \ | $(ASSORT) -u | diff - $$t || { rm $$t; exit 1; }; \ rm $$t
.PHONY: sc_man_check_x_copyright sc_man_check_x_copyright: @status=0; \ cd $(srcdir) && wc -cl man/.x | head -n-1 \ | awk '$$1 >= 20 || $$2 >= 1000 {print $$3}' \ | xargs grep -L 'Copyright . Free Software Foundation' \ | grep . \ && { echo 1>&2 '$@: exceeding file size/line count limit' \ '- please add a copyright note'; status=1; }; \ exit $$status
all-progs-but-lbracket = $(filter-out [,$(patsubst src/%,%,$(all_programs)))
.PHONY: check-programs-vs-x check-programs-vs-x: @status=0; \ for p in dummy $(all-progs-but-lbracket); do \ case $$p in *.so) continue;; esac; \ test $$p = dummy && continue; \ test $$p = ginstall && p=install || : ; \ test -f $(srcdir)/man/$$p.x \ || { echo missing $$p.x 1>&2; status=1; }; \ done; \ exit $$status
sc_case_insensitive_file_names: src/uniq @git ls-files | sort -f | src/uniq -Di | grep . && \ { echo "$(ME): the above file(s) conflict on case insensitive" \ " file systems" 1>&2; exit 1; } || :
sc_NEWS_two_empty_lines: @sed -n 4,/Noteworthy/p $(srcdir)/NEWS \ | perl -n0e '/(^|\n)\n\n* Noteworthy/ or exit 1' \ || { echo '$(ME): use two empty lines to separate NEWS sections' \ 1>&2; exit 1; } || :
binop_re_ ?= [-/+^!<>]|[-/+*^!<>=]=|&&?|||?|<<=?|>>=? sc_prohibit_operator_at_end_of_line: @prohibit='. ($(binop_re_))$$' \ in_vc_files='.[chly]$$' \ halt='found operator at end of line' \ $(_sc_search_regexp)
sc_prohibit_readlink: @prohibit='\<readlink(at)? (' \ halt='do not use readlink(at); use via xreadlink or areadlink*' \ $(_sc_search_regexp)
sc_prohibit_stat_macro_address: @prohibit='\<l?stat '':|&l?stat>' \ halt='stat() and lstat() may be function-like macros' \ $(_sc_search_regexp)
extract_char = sed 's/^[^%][^%]%(.)./\1/' sc_strftime_check: @if test -f $(srcdir)/src/date.c; then \ grep '^ %. ' $(srcdir)/src/date.c | sort \ | $(extract_char) > $@-src; \ { echo N; echo q; \ info libc date calendar format 2>/dev/null \ | grep "^ *['`]%.'$$"| $(extract_char); }| sort >$@-info;\ if test $$(stat --format %s $@-info) != 2; then \ diff -u $@-src $@-info || exit 1; \ else \ echo '$(ME): skipping $@: libc info not installed' 1>&2; \ fi; \ rm -f $@-src $@-info; \ fi
sc_prohibit_tab_based_indentation: @prohibit='^ * ' \ halt='TAB in indentation; use only spaces' \ $(_sc_search_regexp)
sc_prohibit_uppercase_id_est: @prohibit='I.E.' \ halt='Uppercase "Id Est" abbreviation; use "I.e.," instead' \ $(_sc_search_regexp)
sc_ensure_dblspace_after_dot_before_id_est: @prohibit='. I.e.' \ halt='Single space after dot before "i.e."; use ". i.e." instead' \ $(_sc_search_regexp)
sc_ensure_comma_after_id_est: @prohibit='[Ii].e.( |$$)' \ halt='Missing comma after "i.e."; use "i.e.," instead' \ $(_sc_search_regexp)
sc_prohibit_man_see_also_period: @grep -nB1 '.$$' $$($(VC_LIST_EXCEPT) | grep 'man/.*.x$$') \ | grep -A1 -e '-[SEE ALSO]' | grep '.$$' && \ { echo '$(ME): do not end "SEE ALSO" section with a period' \ 1>&2; exit 1; } || :
sc_prohibit_emacs__indent_tabs_mode__setting: @prohibit='^( [#] *)?indent-tabs-mode:' \ halt='use of emacs indent-tabs-mode: setting' \ $(_sc_search_regexp)
sc_prohibit_fail_0: @prohibit='\<fail=0>' \ halt='fail=0 initialization' \ $(_sc_search_regexp)
cmd ... && fail=1
as that hides crashes.test ... && fail=1
sc_prohibit_and_fail_1: @prohibit='&& fail=1' \ exclude='(returns_|stat|kill|test |EGREP|grep|compare|2> *[^/])' \ halt='&& fail=1 detected. Please use: returns_ 1 ... || fail=1' \ in_vc_files='^tests/' \ $(_sc_search_regexp)
sc_prohibit_env_returns: @prohibit='=[^ ]* returns_ ' \ exclude=' returns ' \ halt='Passing env vars to returns_ is non portable' \ in_vc_files='^tests/' \ $(_sc_search_regexp)
sc_prohibit_short_facl_mode_spec: @prohibit='\<setfacl .-m.:.*:[rwx-]{1,2} ' \ halt='setfacl mode string length < 3; extend with hyphen(s)' \ $(_sc_search_regexp)
sc_require_stdio_safer: @if $(VC_LIST_EXCEPT) | grep -l '.[ch]$$' > /dev/null; then \ files=$$(grep -l '\bfreopen \?(' $$($(VC_LIST_EXCEPT) \ | grep '.[ch]$$')); \ test -n "$$files" && grep -LE 'include "stdio--.h"' $$files \ | grep . && \ { echo '$(ME): the above files should use "stdio--.h"' \ 1>&2; exit 1; } || :; \ else :; \ fi
sc_prohibit_perl_hash_quotes: @prohibit="{'[A-Z_]+' *[=}]" \ halt="in Perl code, write \$$hash{KEY}, not \$$hash{'K''EY'}" \ $(_sc_search_regexp)
sc_prohibit_sleep: @prohibit='\<(nano|u)?sleep (' \ halt='prefer xnanosleep over other sleep interfaces' \ $(_sc_search_regexp)
sc_prohibit_verbose_version: @prohibit='test "\$$VERBOSE" = yes && .* --version' \ halt='use the print_ver_ function instead...' \ $(_sc_search_regexp)
sc_env_test_dependencies: @cd $(top_srcdir) && GIT_PAGER= git grep -E \ "env ($$(build-aux/gen-lists-of-programs.sh --list-progs | \ grep -vF '[' |paste -d'|' -s))" tests | \ sed "s/([^:]):.env ([^)' ])./\1 \2/" | uniq | \ while read test prog; do \ printf '%s' $$test | grep -q '.pl$$' && continue; \ grep -q "print_ver_. $$prog" $$test \ || echo $$test should call: print_ver_ $$prog; \ done | grep . && exit 1 || :
sc_prohibit_framework_failure: @prohibit='\<framework_''failure>' \ halt='use framework_failure_ instead' \ $(_sc_search_regexp)
...
in tests/. Use $(...) instead.sc_prohibit_test_backticks:
@prohibit='' in_vc_files='^tests/' \
halt='use $$(...), not
...` in tests/' \
$(_sc_search_regexp)
sc_prohibit_test_empty:
@prohibit='test -s.*&&' in_vc_files='^tests/' \
halt='use compare /dev/null ...
, not test -s ...
in tests/' \
$(_sc_search_regexp)
sc_prohibit_expr_unsigned:
@prohibit='expr .*(UINT|ULONG|[^S]SIZE|[UGP]ID|UINTMAX)' \
halt='avoid passing unsigned limits to expr
(without GMP)' \
in_vc_files='^tests/' \
$(_sc_search_regexp)
sc_some_programs_must_avoid_exit_failure: @grep -nw EXIT_FAILURE \ $$(git grep -El '[^T]_FAILURE|EXIT_CANCELED' $(srcdir)/src) \ | grep -vE '= EXIT_FAILURE|return .* \?' | grep . \ && { echo '$(ME): do not use EXIT_FAILURE in the above' \ 1>&2; exit 1; } || :
sc_prohibit_test_ulimit_without_require_: @(git grep -l get_min_ulimit_v_ $(srcdir)/tests; \ git grep -l 'ulimit -v' $(srcdir)/tests) \ | sort | uniq -u | grep . && { echo "$(ME): the above test(s)"\ " should match get_min_ulimit_v_ with ulimit -v" 1>&2; exit 1; } || :
sc_prohibit_test_background_without_cleanup_: @(git grep -El '( &$$|&[^&]*=\$$!)' $(srcdir)/tests; \ git grep -l 'cleanup_()' $(srcdir)/tests | sed p) \ | sort | uniq -u | grep . && { echo "$(ME): the above test(s)"\ " should use cleanup_ for background processes" 1>&2; exit 1; } || :
sc_prohibit_test_calls_print_ver_with_irrelevant_argument: @git grep -w print_ver_ $(srcdir)/tests \ | sed 's#:print_ver_##' \ | { fail=0; \ while read file name; do \ for i in $$name; do \ case "$$i" in install) i=ginstall;; esac; \ grep -w "$$i" $$file|grep -vw print_ver_|grep -q . \ || { fail=1; \ echo "*** Test: $$file, offending: $$i." 1>&2; };\ done; \ done; \ test $$fail = 0 || exit 1; \ } || { echo "$(ME): the above test(s) call print_ver_ for" \ "program(s) they don't use" 1>&2; exit 1; }
_continued_string_col_1 = \ s/^usage .*?\n}//ms;/\\n\w/ and print ("$$ARGV\n"),$$e=1;END{$$e||=0;exit $$e}
sc_prohibit_continued_string_alpha_in_column_1: @perl -0777 -ne '$(_continued_string_col_1)' \ $$($(VC_LIST_EXCEPT) | grep '.[ch]$$') \ || { echo '$(ME): continued string with word in first column' \ 1>&2; exit 1; } || :
_p0 = ([^"'/]|"([^\"]|[].)"|'([^\']|[].)' _pre = $(_p0)|[/][^"'/]|[/]"([^\"]|[].)"|[/]'([^\']|[].)') _pre_anchored = ^($(_pre)) _comment_and_close = [^]|[][^/])[][]*/
_sed_remove_comments = \ /[/][/]/{ \ ta; \ :a; \ s,$(_pre_anchored)//.,\1,; \ te; \ s,$(_pre_anchored)/[]($(_comment_and_close),\1 ,; \ ta; \ /^$(_pre)[/][]/{ \ s,$(_pre_anchored)/[].,\1 ,; \ tu; \ :u; \ n; \ s,^($(_comment_and_close),,; \ tv; \ s,^.*$$,,; \ bu; \ :v; \ }; \ :e; \ }
_sed_rm_comments_q = $(subst ','\'',$(_sed_remove_comments))
_space_before_paren_exempt =? \n\$$ _space_before_paren_exempt = \ (^ *#|\n\$$|%s(to %s|(date|group|character)(s))
sc_space_before_open_paren: @if $(VC_LIST_EXCEPT) | grep -l '.[ch]$$' > /dev/null; then \ fail=0; \ for c in $$($(VC_LIST_EXCEPT) | grep '.[ch]$$'); do \ sed '$(_sed_rm_comments_q)' $$c 2>/dev/null \ | grep -i '[[:alnum:]](' \ | grep -vE '$(_space_before_paren_exempt)' \ | grep . && { fail=1; echo "*** $$c"; }; \ done; \ test $$fail = 1 && \ { echo '$(ME): the above files lack a space-before-open-paren' \ 1>&2; exit 1; } || :; \ else :; \ fi
sc_prohibit_strncmp: @prohibit='^[^#].str''ncmp (' \ halt='use STREQ_LEN or STRPREFIX instead of str''ncmp' \ $(_sc_search_regexp)
sc_preprocessor_indentation: @if cppi --version >/dev/null 2>&1; then \ $(VC_LIST_EXCEPT) | grep '.[ch]$$' | xargs cppi -a -c \ || { echo '$(ME): incorrect preprocessor indentation' 1>&2; \ exit 1; }; \ else \ echo '$(ME): skipping test $@: cppi not installed' 1>&2; \ fi
sc_THANKS_in_duplicates: @{ git log --pretty=format:%aN | sort -u; \ cut -b-36 $(srcdir)/THANKS.in \ | sed '/^$$/,/^$$/!d;/^$$/d;s/ *$$//'; } \ | sort | uniq -d | grep . \ && { echo '$(ME): remove the above names from THANKS.in' \ 1>&2; exit 1; } || :
sc_THANKS_in_sorted: @printf 'a\n.b\n'|LC_ALL=en_US.UTF-8 src/sort -c 2> /dev/null \ && { \ sed '/^$$/,/^$$/!d;/^$$/d' $(srcdir)/THANKS.in > $@.1 && \ LC_ALL=en_US.UTF-8 src/sort -f -k1,1 $@.1 > $@.2 && \ diff -u $@.1 $@.2; diff=$$?; \ rm -f $@.1 $@.2; \ test "$$diff" = 0 \ || { echo '$(ME): THANKS.in is unsorted' 1>&2; exit 1; }; \ } \ || { echo '$(ME): this system has erroneous locale data;' \ 'skipping $@' 1>&2; }
sc_marked_devdiagnostics: @prohibit='\<devmsg (._(' \ halt='found marked developer diagnostic(s)' \ $(_sc_search_regexp)
sc_fs-magic-compare: @sed -n 's|./* (0x[0-9A-Fa-f]{1,}) .*/|\1|p' \ $(srcdir)/src/stat.c | grep -Ev '^0x([0-9A-F]{4}){1,2}$$' \ && { echo '$(ME): Constants in src/stat.c should be 4 or 8' \ 'upper-case chars' 1>&2; exit 1; } || :
sc_gitignore_missing: @{ sed -n '/^\/lib\/..h$$/{p;p}' $(srcdir)/.gitignore; \ find lib -name '.in' ! -name '~' ! -name 'sys_' | \ sed 's|^|/|; s|_(.in.h)|/\1|; s/.in//'; } | \ sort | uniq -u | grep . && { echo '$(ME): Add above' \ 'entries to .gitignore' >&2; exit 1; } || :
sc_prohibit-form-feed: @prohibit=$$'\f' \ in_vc_files='.[chly]$$' \ halt='Form Feed (^L) detected' \ $(_sc_search_regexp)
announcement_Cc_ = $(translation_project_), \ coreutils@gnu.org, coreutils-announce@gnu.org
-include $(srcdir)/dist-check.mk
update-copyright-env = \ UPDATE_COPYRIGHT_FORCE=1 \ UPDATE_COPYRIGHT_USE_INTERVALS=2 \ UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79
exclude_file_name_regexp--sc_space_tab = \ ^(tests/pr/|tests/misc/nl.sh$$|gl/..diff$$|man/help2man$$) exclude_file_name_regexp--sc_bindtextdomain = \ ^(gl/.|lib/euidaccess-stat|src/make-prime-list).c$$ exclude_file_name_regexp--sc_trailing_blank = \ ^(tests/pr/|gl/.*.diff$$|man/help2man) exclude_file_name_regexp--sc_system_h_headers = \ ^src/((die|system|copy).h|make-prime-list.c)$$
_src = (false|lbracket|ls-(dir|ls|vdir)|tac-pipe|uname-(arch|uname)) exclude_file_name_regexp--sc_require_config_h_first = \ (^lib/buffer-lcm.c|gl/lib/xdecto.max.c|src/$(_src).c)$$ exclude_file_name_regexp--sc_require_config_h = \ $(exclude_file_name_regexp--sc_require_config_h_first)
exclude_file_name_regexp--sc_po_check = ^(gl/|man/help2man) exclude_file_name_regexp--sc_prohibit_always-defined_macros = \ ^src/(seq|remove).c$$ exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = ^tests/pr/ exclude_file_name_regexp--sc_program_name = \ ^(gl/.|lib/euidaccess-stat|src/make-prime-list).c$$ exclude_file_name_regexp--sc_file_system = \ NEWS|^(init.cfg|src/df.c|tests/df/df-P.sh|tests/df/df-output.sh)$$ exclude_file_name_regexp--sc_prohibit_always_true_header_tests = \ ^m4/stat-prog.m4$$ exclude_file_name_regexp--sc_prohibit_fail_0 = \ (^./git-hooks/commit-msg|^tests/init.sh|Makefile.am|.mk|..texi)$$ exclude_file_name_regexp--sc_prohibit_test_minus_ao = .texi$$ exclude_file_name_regexp--sc_prohibit_atoi_atof = ^lib/euidaccess-stat.c$$
_ll = ^src/longlong.h$$ exclude_file_name_regexp--sc_useless_cpp_parens = $(_ll) exclude_file_name_regexp--sc_space_before_open_paren = $(_ll)
tbi_1 = ^tests/pr/|(.mk|^man/help2man)$$ tbi_2 = ^scripts/git-hooks/(pre-commit|pre-applypatch|applypatch-msg)$$ tbi_3 = (GNU)?[Mm]akefile(.am)?$$|$(_ll) exclude_file_name_regexp--sc_prohibit_tab_based_indentation = \ $(tbi_1)|$(tbi_2)|$(tbi_3)
exclude_file_name_regexp--sc_preprocessor_indentation = \ ^(gl/lib/rand-isaac.[ch]|gl/tests/test-rand-isaac.c)$$|$(_ll) exclude_file_name_regexp--sc_prohibit_stat_st_blocks = \ ^(src/system.h|tests/du/2g.sh)$$
exclude_file_name_regexp--sc_prohibit_continued_string_alpha_in_column_1 = \ ^src/(system.h|od.c|printf.c|getlimits.c)$$
exclude_file_name_regexp--sc_prohibit_test_backticks = \ ^tests/(local.mk|(init|misc/stdbuf|factor/create-test).sh)$$
exclude_file_name_regexp--sc_prohibit_operator_at_end_of_line = \ ^src/(ptx|test|head).c$$
exclude_file_name_regexp--sc_error_message_uppercase = ^src/factor.c$$ exclude_file_name_regexp--sc_prohibit_atoi_atof = ^src/make-prime-list.c$$
exclude_file_name_regexp--sc_prohibit-gl-attributes = ^src/libstdbuf.c$$
exclude_file_name_regexp--sc_prohibit_uppercase_id_est = .diff$$ exclude_file_name_regexp--sc_ensure_dblspace_after_dot_before_id_est = .diff$$ exclude_file_name_regexp--sc_ensure_comma_after_id_est = .diff|$(_ll)$$ exclude_file_name_regexp--sc_long_lines = .diff$$|$(_ll)
AM_CFLAGS += $($(@D)_CFLAGS)
src_CFLAGS = $(WARN_CFLAGS) lib_CFLAGS = $(GNULIB_WARN_CFLAGS) gnulib-tests_CFLAGS = $(GNULIB_TEST_WARN_CFLAGS)
export _gl_TS_headers = $(noinst_HEADERS)
gl_TS_unmarked_extern_functions = main usage _gl_TS_unmarked_extern_functions += single_binary_main. usage.
_gl_TS_other_headers = $(srcdir)/src/.h src/.h
_gl_TS_unmarked_extern_vars = factor_clz_tab
_gl_TS_dir = . _gl_TS_obj_files = src/*.$(OBJEXT)