From 842027faddc16b5dd6a929ec17b8f6d05b37ef07 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Wed, 23 Aug 2023 09:05:37 +0800 Subject: [PATCH] mu4e: generate mu4e-autoloads.el This file can be used by package.el. --- mu4e/meson.build | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mu4e/meson.build b/mu4e/meson.build index 07b329d8c..2878026d9 100644 --- a/mu4e/meson.build +++ b/mu4e/meson.build @@ -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)