From 22770f9aad8c49847bd50b52a7317d1cc679406f Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 10 Dec 2023 16:24:38 -0500 Subject: make: Use loaddefs-generate if available As of Emacs 29, update-file-autoloads is obsolete. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c27dbb1..b5da515 100644 --- a/Makefile +++ b/Makefile @@ -30,4 +30,7 @@ clean: %-autoloads.el: %.el @$(BATCH) --eval \ "(let ((make-backup-files nil)) \ - (update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\"))" + (if (fboundp 'loaddefs-generate) \ + (loaddefs-generate default-directory \"$@\" \ + (list \"annexview-tests.el\")) \ + (update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\")))" -- cgit v1.2.3