From: Guus Sliepen Date: Mon, 8 Oct 2018 20:12:23 +0000 (+0200) Subject: Install the bash completion file when running make install. X-Git-Tag: release-1.1pre18~52 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=45ad0de16aec3c2ace817e5a3e58744e83db0ffd;p=tinc Install the bash completion file when running make install. Closes #209 on GitHub. --- 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