]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/rpm/meson.build
meson: also allow setting GIT_VERSION via templates
[thirdparty/systemd.git] / src / rpm / meson.build
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 rootlibexecdir
7 ['systemd-update-helper', rpmmacrosdir != 'no', rootlibexecdir],
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 foreach tuple : in_files
16 file = tuple[0]
17 custom_target(
18 file,
19 input : file + '.in',
20 output : file,
21 command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
22 install : tuple[1],
23 install_dir : tuple.length() > 2 ? tuple[2] : '',
24 build_by_default : true)
25 endforeach