]> git.ipfire.org Git - thirdparty/systemd.git/blame - shell-completion/zsh/meson.build
meson: Always build bootctl
[thirdparty/systemd.git] / shell-completion / zsh / meson.build
CommitLineData
db9ecf05 1# SPDX-License-Identifier: LGPL-2.1-or-later
3a726fcd 2
5c23128d
ZJS
3zshcompletiondir = get_option('zshcompletiondir')
4if zshcompletiondir == ''
fce9abb2 5 zshcompletiondir = datadir / 'zsh/site-functions'
5c23128d
ZJS
6endif
7
5908656c
ZJS
8custom_target(
9 '_systemctl',
10 input : '_systemctl.in',
11 output : '_systemctl',
8f04a1ca 12 command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
5908656c
ZJS
13 install : zshcompletiondir != 'no',
14 install_dir : zshcompletiondir)
5c23128d 15
5908656c
ZJS
16items = [['_busctl', ''],
17 ['_journalctl', ''],
18 ['_systemd-analyze', ''],
19 ['_systemd-delta', ''],
20 ['_systemd-nspawn', ''],
21 ['_systemd', ''],
22 ['_systemd-path', ''],
23 ['_systemd-run', ''],
24 ['_udevadm', ''],
f887eab1 25 ['_kernel-install', 'ENABLE_KERNEL_INSTALL'],
5908656c
ZJS
26 ['_sd_hosts_or_user_at_host', ''],
27 ['_sd_outputmodes', ''],
28 ['_sd_unit_files', ''],
29 ['_sd_machines', ''],
dedb925e 30 ['_bootctl', ''],
5908656c
ZJS
31 ['_coredumpctl', 'ENABLE_COREDUMP'],
32 ['_hostnamectl', 'ENABLE_HOSTNAMED'],
33 ['_localectl', 'ENABLE_LOCALED'],
34 ['_loginctl', 'ENABLE_LOGIND'],
35 ['_machinectl', 'ENABLE_MACHINED'],
36 ['_networkctl', 'ENABLE_NETWORKD'],
de0988f9 37 ['_oomctl', 'ENABLE_OOMD'],
5908656c
ZJS
38 ['_systemd-inhibit', 'ENABLE_LOGIND'],
39 ['_resolvectl', 'ENABLE_RESOLVE'],
40 ['_systemd-tmpfiles', 'ENABLE_TMPFILES'],
41 ['_timedatectl', 'ENABLE_TIMEDATED']]
5c23128d 42
5908656c
ZJS
43foreach item : items
44 if zshcompletiondir != 'no' and (item[1] == '' or conf.get(item[1]) == 1)
45 install_data(item[0],
46 install_dir : zshcompletiondir)
47 endif
48endforeach