diff options
author | Kyle Meyer <kyle@kyleam.com> | 2023-12-10 16:24:38 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2023-12-10 16:29:27 -0500 |
commit | 22770f9aad8c49847bd50b52a7317d1cc679406f (patch) | |
tree | 7e3439cd07ed1d13567e74f09814bb44e39ec6f8 /Makefile | |
parent | 891c9dc867e1ca0cd3266087061ad12e16455970 (diff) | |
download | annexview-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-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)/$@\")))" |