From 675f5a7f938e1a1bfe6a7b3cb0b241d9dcd7020a Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 3 Jan 2023 23:08:49 +0200 Subject: [PATCH] mu4e: improve elc compilation build-target --directory comes first --- mu4e/meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mu4e/meson.build b/mu4e/meson.build index fe061ff8..9c20479f 100644 --- a/mu4e/meson.build +++ b/mu4e/meson.build @@ -74,6 +74,8 @@ foreach src : mu4e_srcs target_path = join_paths(meson.current_build_dir(), target_name) target_func = '(setq byte-compile-dest-file-function(lambda(_) "' + target_path + '"))' + # todo: depfile. + custom_target(src.underscorify() + '_el', build_by_default: true, input: src, @@ -83,10 +85,10 @@ foreach src : mu4e_srcs command: [emacs, '--no-init-file', '--batch', - '--eval', '(setq load-prefer-newer t)', - '--eval', target_func, '--directory', meson.current_build_dir(), '--directory', meson.current_source_dir(), + '--eval', '(setq load-prefer-newer t)', + '--eval', target_func, '--funcall', 'batch-byte-compile', '@INPUT@']) endforeach