From 3c4aad847c4564cf23e6109f7f3a241406e31016 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Wed, 17 Aug 2022 23:21:50 +0300 Subject: Makefile: Use loaddefs-generate in Emacs 29 What will become Emacs 29 has obsoleted and no longer preloads autoload.el, which defines update-file-autoloads. * Makefile (bog-autoloads.el): When available, prefer the new loaddefs-generate over update-file-autoloads. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d85bb40..23330e5 100644 --- a/Makefile +++ b/Makefile @@ -19,5 +19,10 @@ clean: bog-autoloads.el: bog.el @$(BATCH) -L . --eval \ - "(let (make-backup-files) \ - (update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\"))" + "(let* ((default-directory (file-name-as-directory \"$(CURDIR)\")) \ + (target (expand-file-name \"$@\")) \ + (excludes (list \"bog-tests.el\")) \ + (make-backup-files nil)) \ + (if (fboundp (quote loaddefs-generate)) \ + (loaddefs-generate default-directory target excludes) \ + (update-file-autoloads \"$<\" t target)))" -- cgit v1.2.3