mu4e: generate mu4e-autoloads.el

This file can be used by package.el.
This commit is contained in:
Lin Jian 2023-08-23 09:05:37 +08:00
parent 00f7053d51
commit 842027fadd
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5
1 changed files with 11 additions and 0 deletions

View File

@ -83,6 +83,17 @@ foreach src : mu4e_srcs
install_mode: 'r--r--r--')
endforeach
# this depends on the above hack: all mu4e elisp files needs to be in builddir
mu4e_autoloads = configure_file(
output: 'mu4e-autoloads.el',
install: true,
install_dir: mu4e_lispdir,
command: [emacs,
'--no-init-file',
'--batch',
'--load', 'package',
'--eval', '(package-generate-autoloads "mu4e" "' + meson.current_build_dir() + '" )'])
foreach src : mu4e_srcs
target_name= '@BASENAME@.elc'
target_path = join_paths(meson.current_build_dir(), target_name)