+2025-05-07 Bruno Haible <bruno@clisp.org>
+
+ Fix "make sc_prohibit_sc_omitted_at" failure.
+ * Makefile (sc_prohibit_sc_omitted_at): Don't apply to this Makefile.
+ (sc_*): Don't hide the rule commands.
+
2025-05-07 Bruno Haible <bruno@clisp.org>
Fix "make sc_prefer_ac_check_funcs_once" failure.
check: $(syntax-check-rules)
sc_prefer_ac_check_funcs_once:
- @if test -d .git; then \
+ if test -d .git; then \
git grep -l -w AC_CHECK_FUNCS modules \
| grep -Ev '$(exclude_file_name_regexp--sc_prefer_ac_check_funcs_once)' \
| grep . \
^modules/(jit/cache)
sc_prohibit_leading_TABs:
- @if test -d .git; then \
+ if test -d .git; then \
git grep -l '^ * ' lib m4 tests \
| grep -Ev '$(exclude_file_name_regexp--sc_prohibit_leading_TABs)' \
| grep . \
^(lib/(cdefs\.h|getopt|ieee754|malloc/|mini-|mktime\.c|qsort\.c|reg|strverscmp\.c)|m4/(largefile|std-gnu)|m4/libgcrypt|tests/from-glibc/|tests/test-update-copyright|Makefile|.*/Makefile)
sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT:
- @if test -d .git; then \
+ if test -d .git; then \
url=https://lists.gnu.org/r/bug-gnulib/2010-09/msg00064.html; \
git grep '^[ ]*TESTS_ENVIRONMENT += PATH=' modules \
&& { printf '%s\n' 'Do not augment PATH via TESTS_ENVIRONMENT;' \
else :; fi
# It's easy to forget the noise-suppressing "@" at the beginning
-# of each sc_ rule. Check for it both in maint.mk and in this file.
+# of each sc_ rule. Check for it in maint.mk.
sc_prohibit_sc_omitted_at:
- @if test -d .git; then \
- git grep -n -A1 '^sc_[[:alnum:]_-]*:' top/maint.mk Makefile \
- | grep -vE ':sc_|[0-9][-] @|--$$' \
- | sed 's/-\([0-9][0-9]*\)-/:\1:/' \
+ if test -d .git; then \
+ git grep -n -A1 '^sc_[[:alnum:]_-]*:' top/maint.mk \
+ | grep -vE ':sc_|[0-9][-] @|--$$' \
+ | sed 's/-\([0-9][0-9]*\)-/:\1:/' \
| grep . \
&& { printf '*** %s\n' 'oops; missing "@"' \
1>&2; exit 1; } || : \
else :; fi
sc_pragma_columns:
- @if test -d .git; then \
+ if test -d .git; then \
git ls-files|grep '\.in\.h$$' \
| xargs grep -l '^@PRAGMA_SYSTEM_HEADER@' \
| xargs grep -L '^@PRAGMA_COLUMNS@' \