aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2023-12-09 18:50:23 -0500
committerKyle Meyer <kyle@kyleam.com>2023-12-09 18:51:25 -0500
commitf8320c90d3fe2a0edef0be59cf3d505482f5c383 (patch)
treed2a8b543dc8add4c2840434e9bc714c73e9722d9
parent239179077ed8029bdccf7c9d4abcc6ea7d1aa2bb (diff)
downloadorg-link-edit-f8320c90d3fe2a0edef0be59cf3d505482f5c383.tar.gz
make: Use loaddefs-generate if available
As of Emacs 29, update-file-autoloads is obsolete.
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cae7a6d..af275ed 100644
--- a/Makefile
+++ b/Makefile
@@ -18,5 +18,8 @@ clean:
%-autoloads.el: %.el
@$(BATCH) --eval \
- "(let (make-backup-files) \
- (update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\"))"
+ "(let ((make-backup-files nil)) \
+ (if (fboundp 'loaddefs-generate) \
+ (loaddefs-generate default-directory \"$@\" \
+ (list \"test-org-link-edit.el\")) \
+ (update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\")))"