sc_tabs_in_texi \
sc_at_in_texi
- ## These check avoids accidental configure substitutions in the source.
- ## There are exactly 7 lines that should be modified from automake.in to
- ## automake, and 9 lines that should be modified from aclocal.in to
- ## aclocal.
+ $(syntax_check_rules): bin/automake bin/aclocal
+ maintainer-check: $(syntax_check_rules)
+ .PHONY: maintainer-check $(syntax_check_rules)
+
+ # Check that the list of tests given in the Makefile is equal to the
+ # list of all test scripts in the Automake testsuite.
+ maintainer-check: maintainer-check-list-of-tests
+
+ # I'm a lazy typist.
+ lint: maintainer-check
+ .PHONY: lint
+
+ # The recipes of syntax checks require a modern GNU grep.
+ sc_sanity_gnu_grep:
+ $(AM_V_GEN)grep --version | grep 'GNU grep' >/dev/null 2>&1 \
+ && ab=$$(printf 'a\nb') \
+ && test "$$(printf 'xa\nb\nc' | grep -Pzo 'a\nb')" = "$$ab" \
+ || { \
+ echo "Syntax checks recipes require a modern GNU grep" >&2; \
+ exit 1; \
+ }
+ .PHONY: sc_sanity_gnu_grep
+ $(syntax_check_rules): sc_sanity_gnu_grep
+
+ # These check avoids accidental configure substitutions in the source.
-# There are exactly 8 lines that should be modified from automake.in to
++# There are exactly 7 lines that should be modified from automake.in to
+ # automake, and 9 lines that should be modified from aclocal.in to
+ # aclocal.
-automake_diff_no = 8
+automake_diff_no = 7
aclocal_diff_no = 9
sc_diff_automake sc_diff_aclocal: in=$($*_in)
sc_diff_automake sc_diff_aclocal: out=$($*_script)
exit 1; \
fi
- ## Use 'configure.ac', not the obsolete 'configure.in', as the name
- ## for configure input files in our testsuite. The latter has been
- ## deprecated for several years (at least since autoconf 2.50) and
- ## support for it will be removed in Automake 1.14.
-# Prefer 'configure.ac' over the obsolescent 'configure.in' as the name
++# Use 'configure.ac', not the obsolete 'configure.in', as the name
+ # for configure input files in our testsuite. The latter has been
-# deprecated for several years (at least since autoconf 2.50).
++# deprecated for several years (at least since autoconf 2.50) and
++# support for it will be removed in Automake 2.0.
sc_tests_no_configure_in:
- @if grep -E '\bconfigure\\*\.in\b' $(xtests) $(xdefs) \
- | grep -Ev '/backcompat.*\.(sh|tap):' \
- | grep -Ev '/autodist-configure-no-subdir\.sh:' \
- | grep -Ev '/(configure|help)\.sh:' \
- | grep .; \
- then \
+ @if grep -E '\bconfigure\\*\.in\b' $(xtests) $(xdefs); then \
echo "Use 'configure.ac', not 'configure.in', as the name" >&2; \
echo "for configure input files in the test cases above." >&2; \
exit 1; \