From 566f5210ce23e1d869472c49ae87ab56cf577468 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 31 Dec 2011 19:51:48 -0600 Subject: contrib: add install rules for bash and zsh completion Uninstall rules are provided as well. Signed-off-by: Dan McGee --- contrib/Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3-2-g168b