From: Luca Boccassi Date: Wed, 27 Apr 2022 21:00:48 +0000 (+0100) Subject: meson: add systemd-boot and systemd-stub build target aliases X-Git-Tag: v251-rc2~55^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F23204%2Fhead;p=thirdparty%2Fsystemd.git 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 --- 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