summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2019-04-01 15:12:56 +0300
committerJustus Winter <justus@sequoia-pgp.org>2019-04-02 13:06:22 +0200
commit53cfb8e582b4d79bd4b6ecd64e2de379efbaa0c4 (patch)
tree68bb8684506f125995b9d64858105e697516bf18 /Makefile
parentfcbd00162d23cb33b2f25c96f407b5f44959c669 (diff)
Install completion files.
- Make tool/build.rs generate completion files into a predictable location ($CARGO_TARGET_DIR). - Install completion files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 254347f3..150e8dcb 100644
--- a/Makefile
+++ b/Makefile
@@ -92,6 +92,21 @@ install: build-release
$(MAKE) -Copenpgp-ffi install
$(MAKE) -Cffi install
$(MAKE) -Csqv install
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/zsh/site-functions
+ $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/zsh/site-functions \
+ $(CARGO_TARGET_DIR)/_sq
+ $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/zsh/site-functions \
+ $(CARGO_TARGET_DIR)/_sqv
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions
+ $(INSTALL) $(CARGO_TARGET_DIR)/sq.bash \
+ $(DESTDIR)$(PREFIX)/share/bash-completion/completions/sq
+ $(INSTALL) $(CARGO_TARGET_DIR)/sqv.bash \
+ $(DESTDIR)$(PREFIX)/share/bash-completion/completions/sqv
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/fish/completions
+ $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/fish/completions \
+ $(CARGO_TARGET_DIR)/sq.fish
+ $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/fish/completions \
+ $(CARGO_TARGET_DIR)/sqv.fish
# Infrastructure for creating source distributions.
.PHONY: dist