diff options
author | Basil L. Contovounesios <contovob@tcd.ie> | 2022-08-17 23:21:50 +0300 |
---|---|---|
committer | Basil L. Contovounesios <contovob@tcd.ie> | 2022-08-18 19:39:13 +0300 |
commit | 3c4aad847c4564cf23e6109f7f3a241406e31016 (patch) | |
tree | 76bec3403cf6c65bf606db511d566a329cb54e0c /Makefile | |
parent | af929c164c4ffaee0c33ba97c06733f0ce9431d4 (diff) | |
download | bog-3c4aad847c4564cf23e6109f7f3a241406e31016.tar.gz |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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)))" |