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 e69542e79360fea63227b6ba2ddecfaad59f38dd..12371406c4ef6bc312e6cf4f5b0d23255457d70e 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 241f17286ecc519826e28d86670e9a774487c6e2..1b8b887ed509874b1cfb579ab607a106df4adec9 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