]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
3a726fcd | 2 | |
5c23128d ZJS |
3 | zshcompletiondir = get_option('zshcompletiondir') |
4 | if zshcompletiondir == '' | |
fce9abb2 | 5 | zshcompletiondir = datadir / 'zsh/site-functions' |
5c23128d ZJS |
6 | endif |
7 | ||
5908656c ZJS |
8 | custom_target( |
9 | '_systemctl', | |
10 | input : '_systemctl.in', | |
11 | output : '_systemctl', | |
a6d17600 | 12 | command : [meson_render_jinja2, config_h, '@INPUT@', '@OUTPUT@'], |
5908656c ZJS |
13 | install : zshcompletiondir != 'no', |
14 | install_dir : zshcompletiondir) | |
5c23128d | 15 | |
5908656c ZJS |
16 | items = [['_busctl', ''], |
17 | ['_journalctl', ''], | |
18 | ['_systemd-analyze', ''], | |
19 | ['_systemd-delta', ''], | |
20 | ['_systemd-nspawn', ''], | |
21 | ['_systemd', ''], | |
22 | ['_systemd-path', ''], | |
23 | ['_systemd-run', ''], | |
24 | ['_udevadm', ''], | |
25 | ['_kernel-install', ''], | |
26 | ['_sd_hosts_or_user_at_host', ''], | |
27 | ['_sd_outputmodes', ''], | |
28 | ['_sd_unit_files', ''], | |
29 | ['_sd_machines', ''], | |
34357545 | 30 | ['_bootctl', 'HAVE_GNU_EFI'], |
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 |
43 | foreach 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 | |
48 | endforeach |