From 45ad0de16aec3c2ace817e5a3e58744e83db0ffd Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 8 Oct 2018 22:12:23 +0200 Subject: [PATCH] Install the bash completion file when running make install. Closes #209 on GitHub. --- Makefile.am | 2 +- bash_completion.d/Makefile.am | 2 ++ configure.ac | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 bash_completion.d/Makefile.am diff --git a/Makefile.am b/Makefile.am index e69542e7..12371406 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = gnu -SUBDIRS = src doc test systemd +SUBDIRS = src doc test systemd bash_completion.d ACLOCAL_AMFLAGS = -I m4 diff --git a/bash_completion.d/Makefile.am b/bash_completion.d/Makefile.am new file mode 100644 index 00000000..9665dfe8 --- /dev/null +++ b/bash_completion.d/Makefile.am @@ -0,0 +1,2 @@ +bash_completiondir = @datarootdir@/bash-completion/completions/ +dist_bash_completion_DATA = tinc diff --git a/configure.ac b/configure.ac index 241f1728..1b8b887e 100644 --- a/configure.ac +++ b/configure.ac @@ -266,6 +266,6 @@ if test "x$runstatedir" = "x"; then AC_SUBST([runstatedir], ['${localstatedir}/run']) fi -AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile test/Makefile systemd/Makefile]) +AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile test/Makefile systemd/Makefile bash_completion.d/Makefile]) AC_OUTPUT -- 2.20.1