Debian Codegraph @

src/rpm/meson.build

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 in_files = [
4 ['macros.systemd', rpmmacrosdir != 'no', rpmmacrosdir],
5
6 # we conditionalize on rpmmacrosdir, but install into libexecdir
7 ['systemd-update-helper', rpmmacrosdir != 'no', libexecdir],
8
9 ['triggers.systemd', false],
10 ['triggers.systemd.sh', false]]
11
12 # The last two don't get installed anywhere, one of them needs to included in
13 # the rpm spec file definition instead.
14
15 rpm_depends = []
16
17 foreach tuple : in_files
18 file = tuple[0]
19 rpm_depends += custom_target(
20 input : file + '.in',
21 output : file,
22 command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
23 install : tuple[1],
24 install_dir : tuple.length() > 2 ? tuple[2] : '',
25 build_by_default : true)
26 endforeach