summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-31 19:51:48 -0600
committerDan McGee <dan@archlinux.org>2012-01-02 12:58:47 -0600
commit566f5210ce23e1d869472c49ae87ab56cf577468 (patch)
treeb3a4eac315c828f9ecd41f875d00a48c26e699bb
parent2ce4f85f1ecea37d2c2ab2ea7393dc04adeeaa1d (diff)
contrib: add install rules for bash and zsh completion
Uninstall rules are provided as well. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--contrib/Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index 8751fd9b..eca39e75 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -64,6 +64,16 @@ $(OURFILES): Makefile
all-am: $(OURSCRIPTS) $(OURFILES)
+install-data-local:
+ $(MKDIR_P) $(DESTDIR)$(sysconfdir)/bash_completion.d/
+ $(INSTALL_DATA) bash_completion $(DESTDIR)$(sysconfdir)/bash_completion.d/pacman
+ $(MKDIR_P) $(DESTDIR)$(datarootdir)/zsh/site-functions/
+ $(INSTALL_DATA) zsh_completion $(DESTDIR)$(datarootdir)/zsh/site-functions/_pacman
+
+uninstall-local:
+ $(RM) $(DESTDIR)$(sysconfdir)/bash_completion.d/pacman
+ $(RM) $(DESTDIR)$(datarootdir)/zsh/site-functions/_pacman
+
bacman: $(srcdir)/bacman.in
bash_completion: $(srcdir)/bash_completion.in
paccache: $(srcdir)/paccache.in