aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2023-12-10 16:24:38 -0500
committerKyle Meyer <kyle@kyleam.com>2023-12-10 16:29:27 -0500
commit22770f9aad8c49847bd50b52a7317d1cc679406f (patch)
tree7e3439cd07ed1d13567e74f09814bb44e39ec6f8 /Makefile
parent891c9dc867e1ca0cd3266087061ad12e16455970 (diff)
downloadannexview-22770f9aad8c49847bd50b52a7317d1cc679406f.tar.gz
make: Use loaddefs-generate if available
As of Emacs 29, update-file-autoloads is obsolete.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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)/$@\")))"