+# 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.
+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:/' \
+ | grep . \
+ && { printf '*** %s\n' 'oops; missing "@"' \
+ 1>&2; exit 1; } || : \
+ else :; fi
+
+# Run all maint.mk syntax-check tests on gnulib's sources.
+sc_maint:
+ @rm -f maint.mk; ln -s top/maint.mk maint.mk
+ $(MAKE) -s srcdir=. gnulib_dir=. _build-aux=build-aux \
+ -f cfg.mk -f maint.mk syntax-check
+ rm -f maint.mk
+