summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-06 10:18:57 +0300
committerLennart Poettering <lennart@poettering.net>2015-08-06 10:18:57 +0300
commitd5972272d2b725ab6a2789899f8b6c1d2a8113e3 (patch)
treeb403cf1c773425d258669c2a65a36b371993ce8e /Makefile.am
parent8090763d76bc85c4a50415114f6aa5fa64080ba4 (diff)
parenta5ba84b7f242b209691d926f786bd48953a43803 (diff)
Merge pull request #888 from keszybz/completions-optional
build-sys: allow skipping installation of completions
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am36
1 files changed, 34 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index a8dece23b1..2927757b4d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -414,6 +414,7 @@ systemgenerator_PROGRAMS = \
systemd-system-update-generator \
systemd-debug-generator
+if ENABLE_BASH_COMPLETION
dist_bashcompletion_DATA = \
shell-completion/bash/busctl \
shell-completion/bash/journalctl \
@@ -430,7 +431,9 @@ dist_bashcompletion_DATA = \
nodist_bashcompletion_DATA = \
shell-completion/bash/systemctl
+endif
+if ENABLE_ZSH_COMPLETION
dist_zshcompletion_DATA = \
shell-completion/zsh/_busctl \
shell-completion/zsh/_journalctl \
@@ -447,6 +450,7 @@ dist_zshcompletion_DATA = \
nodist_zshcompletion_DATA = \
shell-completion/zsh/_systemctl
+endif
EXTRA_DIST += \
shell-completion/bash/systemctl.in \
@@ -2235,8 +2239,10 @@ SYSINIT_TARGET_WANTS += \
systemd-tmpfiles-setup-dev.service \
systemd-tmpfiles-setup.service
+if ENABLE_ZSH_COMPLETION
dist_zshcompletion_DATA += \
shell-completion/zsh/_systemd-tmpfiles
+endif
TIMERS_TARGET_WANTS += \
systemd-tmpfiles-clean.timer
@@ -2467,12 +2473,16 @@ bootctl_LDADD = \
bin_PROGRAMS += \
bootctl
+if ENABLE_BASH_COMPLETION
dist_bashcompletion_DATA += \
shell-completion/bash/bootctl
+endif
+if ENABLE_ZSH_COMPLETION
dist_zshcompletion_DATA += \
shell-completion/zsh/_bootctl
endif
+endif
# ------------------------------------------------------------------------------
if HAVE_GNUEFI
@@ -4254,11 +4264,15 @@ test_coredump_vacuum_SOURCES = \
test_coredump_vacuum_LDADD = \
libshared.la
+if ENABLE_BASH_COMPLETION
dist_bashcompletion_DATA += \
shell-completion/bash/coredumpctl
+endif
+if ENABLE_ZSH_COMPLETION
dist_zshcompletion_DATA += \
shell-completion/zsh/_coredumpctl
+endif
nodist_sysctl_DATA = \
sysctl.d/50-coredump.conf
@@ -4506,12 +4520,15 @@ hostnamectl_LDADD = \
bin_PROGRAMS += \
hostnamectl
+if ENABLE_BASH_COMPLETION
dist_bashcompletion_DATA += \
shell-completion/bash/hostnamectl
+endif
+if ENABLE_ZSH_COMPLETION
dist_zshcompletion_DATA += \
shell-completion/zsh/_hostnamectl
-
+endif
endif
polkitpolicy_in_files += \
@@ -4577,12 +4594,15 @@ localectl_LDADD = \
bin_PROGRAMS += \
localectl
+if ENABLE_BASH_COMPLETION
dist_bashcompletion_DATA += \
shell-completion/bash/localectl
+endif
+if ENABLE_ZSH_COMPLETION
dist_zshcompletion_DATA += \
shell-completion/zsh/_localectl
-
+endif
endif
.PHONY: update-kbd-model-map
@@ -4634,12 +4654,16 @@ timedatectl_LDADD = \
bin_PROGRAMS += \
timedatectl
+if ENABLE_BASH_COMPLETION
dist_bashcompletion_DATA += \
shell-completion/bash/timedatectl
+endif
+if ENABLE_ZSH_COMPLETION
dist_zshcompletion_DATA += \
shell-completion/zsh/_timedatectl
endif
+endif
polkitpolicy_in_files += \
src/timedate/org.freedesktop.timedate1.policy.in
@@ -4745,8 +4769,10 @@ machinectl_LDADD = \
rootbin_PROGRAMS += \
machinectl
+if ENABLE_BASH_COMPLETION
dist_bashcompletion_DATA += \
shell-completion/bash/machinectl
+endif
test_machine_tables_SOURCES = \
src/machine/test-machine-tables.c
@@ -4775,9 +4801,11 @@ dist_dbuspolicy_DATA += \
polkitpolicy_files += \
src/machine/org.freedesktop.machine1.policy
+if ENABLE_ZSH_COMPLETION
dist_zshcompletion_DATA += \
shell-completion/zsh/_machinectl \
shell-completion/zsh/_sd_machines
+endif
SYSTEM_UNIT_ALIASES += \
systemd-machined.service dbus-org.freedesktop.machine1.service
@@ -5337,12 +5365,16 @@ loginctl_LDADD = \
rootbin_PROGRAMS += \
loginctl
+if ENABLE_BASH_COMPLETION
dist_bashcompletion_DATA += \
shell-completion/bash/loginctl
+endif
+if ENABLE_ZSH_COMPLETION
dist_zshcompletion_DATA += \
shell-completion/zsh/_loginctl \
shell-completion/zsh/_systemd-inhibit
+endif
systemd_inhibit_SOURCES = \
src/login/inhibit.c