Skip to content

Commit

Permalink
mu4e: generate mu4e-autoloads.el
Browse files Browse the repository at this point in the history
This file can be used by package.el.
  • Loading branch information
jian-lin committed Aug 23, 2023
1 parent 00f7053 commit 842027f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mu4e/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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= '@[email protected]'
target_path = join_paths(meson.current_build_dir(), target_name)
Expand Down

0 comments on commit 842027f

Please sign in to comment.