]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: ensure that makeinfo ≥ 6.8 checks the @menu structure
authorBruno Haible <bruno@clisp.org>
Thu, 22 Jun 2023 21:59:11 +0000 (23:59 +0200)
committerPádraig Brady <P@draigBrady.com>
Thu, 22 Jun 2023 22:22:07 +0000 (23:22 +0100)
See <https://lists.gnu.org/r/bug-texinfo/2023-06/msg00015.html>.

* doc/local.mk (MAKEINFO): New variable.
* cfg.mk (_makefile_at_at_check_exceptions): Update.

cfg.mk
doc/local.mk

diff --git a/cfg.mk b/cfg.mk
index 92f119ee2fb99f2419aca55a953fd52f8d7e1210..6ba8981abc502527e8b2fae23d65818ccbfb4e81 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -52,7 +52,8 @@ export XZ_OPT = -8e
 old_NEWS_hash = ac6cb1c35890b53e56acbfbb078fcd53
 
 # Add an exemption for sc_makefile_at_at_check.
-_makefile_at_at_check_exceptions = ' && !/^cu_install_prog/ && !/dynamic-dep/'
+_makefile_at_at_check_exceptions = \
+  ' && !/MAKEINFO/ && !/^cu_install_prog/ && !/dynamic-dep/'
 
 # Our help-version script is in a slightly different location.
 _hv_file ?= $(srcdir)/tests/misc/help-version
index 9714d5b181d4041b11ad9ec55a88074bdf24ef5f..b5a6c33b6f0a26f7a0324214b52938ce62f33968 100644 (file)
@@ -25,6 +25,10 @@ doc_coreutils_TEXINFOS = \
   doc/fdl.texi \
   doc/sort-version.texi
 
+# The customization variable CHECK_NORMAL_MENU_STRUCTURE is necessary with
+# makeinfo versions ≥ 6.8.
+MAKEINFO = @MAKEINFO@ -c CHECK_NORMAL_MENU_STRUCTURE=1
+
 # The following is necessary if the package name is 8 characters or longer.
 # If the info documentation would be split into 10 or more separate files,
 # then this is necessary even if the package name is 7 characters long.