summaryrefslogtreecommitdiffstats
path: root/contrib/Makefile.am
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-01-01 02:51:48 +0100
committerDan McGee <dan@archlinux.org>2012-01-02 19:58:47 +0100
commit566f5210ce23e1d869472c49ae87ab56cf577468 (patch)
treeb3a4eac315c828f9ecd41f875d00a48c26e699bb /contrib/Makefile.am
parent2ce4f85f1ecea37d2c2ab2ea7393dc04adeeaa1d (diff)
downloadpacman-566f5210ce23e1d869472c49ae87ab56cf577468.tar.gz
pacman-566f5210ce23e1d869472c49ae87ab56cf577468.tar.xz
contrib: add install rules for bash and zsh completion
Uninstall rules are provided as well. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib/Makefile.am')
-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