]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: add systemd-boot and systemd-stub build target aliases 23204/head
authorLuca Boccassi <bluca@debian.org>
Wed, 27 Apr 2022 21:00:48 +0000 (22:00 +0100)
committerLuca Boccassi <bluca@debian.org>
Wed, 27 Apr 2022 21:24:58 +0000 (22:24 +0100)
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

index 4316588998fd7da988f1371a9993d67520768051..d7dae94ef2da324b8714b2858d05d92c4ae79ce0 100644 (file)
@@ -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