From 32c603e9e557aa8bc448bd0b3af493a9244d1aae Mon Sep 17 00:00:00 2001
From: Lars Ingebrigtsen <larsi@gnus.org>
Date: Fri, 5 Aug 2022 23:48:33 +0200
Subject: [PATCH] Ensure that leim-list.el is built

* lisp/Makefile.in: Ensure that leim-list.el is built (bug#56998).
---
 lisp/Makefile.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index f0a66aafb5a..14582611fde 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -187,8 +187,10 @@ org-manuals: main-first
 
 # The real dependencies of loaddefs.el aren't known to Make, they are
 # implemented in loaddefs-generate--emacs-batch, so autoloads is an
-# "all" dependency.
-autoloads: $(lisp)/emacs-lisp/loaddefs-gen.elc
+# "all" dependency.  "leim" isn't really a dependency here, but we
+# need leim-list.el at about the same time, so ensure that it's
+# generated, too.
+autoloads: $(lisp)/emacs-lisp/loaddefs-gen.elc leim
 	$(AM_V_GEN)$(emacs) \
             -l $(lisp)/emacs-lisp/loaddefs-gen.elc \
 	    -f loaddefs-generate--emacs-batch ${SUBDIRS_ALMOST}
-- 
2.39.5