diff options
author | Kyle Meyer <kyle@kyleam.com> | 2023-12-09 18:50:23 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2023-12-09 18:51:25 -0500 |
commit | f8320c90d3fe2a0edef0be59cf3d505482f5c383 (patch) | |
tree | d2a8b543dc8add4c2840434e9bc714c73e9722d9 /Makefile | |
parent | 239179077ed8029bdccf7c9d4abcc6ea7d1aa2bb (diff) | |
download | org-link-edit-f8320c90d3fe2a0edef0be59cf3d505482f5c383.tar.gz |
make: Use loaddefs-generate if available
As of Emacs 29, update-file-autoloads is obsolete.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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)/$@\")))" |