mirror of
https://github.com/systemd/systemd
synced 2025-10-05 16:03:15 +02:00
[1] says: > Since 0.60.0 the name argument is optional and defaults to the basename of > the first output We specify >= 0.62 as the supported version, so drop the duplicate name in all cases where it is the same as outputs[0], i.e. almost all cases. [1] https://mesonbuild.com/Reference-manual_functions.html#custom_target
25 lines
840 B
Meson
25 lines
840 B
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
in_files = [
|
|
['macros.systemd', rpmmacrosdir != 'no', rpmmacrosdir],
|
|
|
|
# we conditionalize on rpmmacrosdir, but install into libexecdir
|
|
['systemd-update-helper', rpmmacrosdir != 'no', libexecdir],
|
|
|
|
['triggers.systemd', false],
|
|
['triggers.systemd.sh', false]]
|
|
|
|
# The last two don't get installed anywhere, one of them needs to included in
|
|
# the rpm spec file definition instead.
|
|
|
|
foreach tuple : in_files
|
|
file = tuple[0]
|
|
custom_target(
|
|
input : file + '.in',
|
|
output : file,
|
|
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
|
|
install : tuple[1],
|
|
install_dir : tuple.length() > 2 ? tuple[2] : '',
|
|
build_by_default : true)
|
|
endforeach
|