summaryrefslogtreecommitdiff
path: root/lisp/Makefile.in
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-08-04 19:10:20 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-08-04 19:10:27 +0200
commit9b5c54a49df931116d85fdfb0b482b1a1074eaf5 (patch)
treef857e9f43776e1861b85c4b2e05f2a7b76d0fda9 /lisp/Makefile.in
parente3edbf577b49bbff0527cd6f3242a98916947875 (diff)
downloademacs-9b5c54a49df931116d85fdfb0b482b1a1074eaf5.tar.gz
Ensure that updated loaddefs files are byte-compiled
* lisp/Makefile.in: Add autoloads as an ordering-only dependency to compile-main so that newly updated loaddefs files are byte-compiled.
Diffstat (limited to 'lisp/Makefile.in')
-rw-r--r--lisp/Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index 7c1f8729396..c11d9bbec9b 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -348,7 +348,11 @@ endif
# Compile all the Elisp files that need it. Beware: it approximates
# 'no-byte-compile', so watch out for false-positives!
-compile-main: gen-lisp compile-clean main-first
+
+# The "autoloads" target has to run first, because it may generate new
+# loaddefs files. But don't depend on it, because that might trigger
+# unnecessary rebuilds.
+compile-main: gen-lisp compile-clean main-first | autoloads
@(cd $(lisp) && \
els=`echo "${SUBDIRS_REL} " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \
for el in $$els; do \