blob: 22a0d1be62a2458ed634fe52287d211b56e88016 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
mod.sdcompletion.description = (systemd) shell completion
mod.sdcompletion.depends += am
define mod.sdcompletion.doc
# Inputs:
# - Directory variable : `rootbin_PROGRAMS`
# - Directory variable : `bin_PROGRAMS`
# - Directory variable : `dist_bin_SCRIPTS`
# - Directory variable : `bashcompletion_DATA`
# - Directory variable : `zshcompletion_DATA`
# Outputs:
# - Directory variable : `dist_bashcompletion_DATA`
# - Directory variable : `dist_zshcompletion_DATA`
endef
mod.sdcompletion.doc := $(value mod.sdcompletion.doc)
rootbin_PROGRAMS ?=
bin_PROGRAMS ?=
dist_bin_SCRIPTS ?=
bashcompletion_DATA ?=
zshcompletion_DATA ?=
# We use `dist_` to trick `am` into not putting it in `am.out_DATA`
dist_bashcompletion_DATA := $(sort $(bashcompletion_DATA) $(rootbin_PROGRAMS) $(bin_PROGRAMS) $(dist_bin_SCRIPTS))
dist_zshcompletion_DATA := $(sort $(zshcompletion_DATA) $(addprefix _,$(rootbin_PROGRAMS) $(bin_PROGRAMS) $(dist_bin_SCRIPTS)))
|