Install the bash completion file when running make install.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 8 Oct 2018 20:12:23 +0000 (22:12 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 8 Oct 2018 20:12:23 +0000 (22:12 +0200)
Closes #209 on GitHub.

Makefile.am
bash_completion.d/Makefile.am [new file with mode: 0644]
configure.ac

index e69542e..1237140 100644 (file)
@@ -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 (file)
index 0000000..9665dfe
--- /dev/null
@@ -0,0 +1,2 @@
+bash_completiondir = @datarootdir@/bash-completion/completions/
+dist_bash_completion_DATA = tinc
index 241f172..1b8b887 100644 (file)
@@ -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