From 705d6b34ee03f4d275be801c121f028a7e618512 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 27 Apr 2022 22:00:48 +0100 Subject: [PATCH] meson: add systemd-boot and systemd-stub build target aliases Allows to quickly build systemd-boot by itself without having to reference the full path of the build target: $ ninja -C foo systemd-stub ninja: Entering directory `foo' [21/21] Generating src/boot/efi/linuxx64.efi.stub with a custom command $ ninja -C foo systemd-boot ninja: Entering directory `foo' [10/10] Generating src/boot/efi/systemd-bootx64.efi with a custom command --- src/boot/efi/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index 4316588998f..d7dae94ef2d 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -428,7 +428,7 @@ foreach tuple : [['systemd-boot@0@.@1@', systemd_boot_objects, false, 'systemd-b install_tag: tuple[3], install_dir : bootlibdir) - custom_target( + efi = custom_target( tuple[0].format(efi_arch[0], 'efi'), input : elf, output : tuple[0].format(efi_arch[0], 'efi'), @@ -449,4 +449,6 @@ foreach tuple : [['systemd-boot@0@.@1@', systemd_boot_objects, false, 'systemd-b install : true, install_tag: tuple[3], install_dir : bootlibdir) + + alias_target(tuple[3], efi) endforeach -- 2.47.3