summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile15
-rw-r--r--sqv/build.rs2
-rw-r--r--tool/build.rs2
3 files changed, 17 insertions, 2 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
diff --git a/sqv/build.rs b/sqv/build.rs
index 290a1a6b..c0f21c05 100644
--- a/sqv/build.rs
+++ b/sqv/build.rs
@@ -8,7 +8,7 @@ mod sqv_cli {
}
fn main() {
- let outdir = match env::var_os("OUT_DIR") {
+ let outdir = match env::var_os("CARGO_TARGET_DIR") {
None => return,
Some(outdir) => outdir,
};
diff --git a/tool/build.rs b/tool/build.rs
index eb58c086..81c35653 100644
--- a/tool/build.rs
+++ b/tool/build.rs
@@ -8,7 +8,7 @@ mod sq_cli {
}
fn main() {
- let outdir = match env::var_os("OUT_DIR") {
+ let outdir = match env::var_os("CARGO_TARGET_DIR") {
None => return,
Some(outdir) => outdir,
};