summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-08-25 19:11:27 +0800
committercyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-08-25 19:11:27 +0800
commitdab19856704972d036252d101c754cc3fc2d85dc (patch)
treedfc6093d441f5d460017ea9a54e960ef5a1a7751
parentffbf0cd8aa73ed3db3e9dc01f154eacb5fe1130c (diff)
Move completion file location
-rw-r--r--Makefile4
-rw-r--r--completion/bandwhich (renamed from src/bandwhich)0
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 447839c..3e35f04 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ BIN=target/$(TARGET)/$(APP)
BIN_DST=$(DESTDIR)$(prefix)/bin/$(APP)
DOC_DST=$(DESTDIR)$(prefix)/share/man/man1/bandwhich.1
LIC_DST=$(DESTDIR)$(prefix)/share/licenses/$(APP)
-AUTOCOMPLETE_DST=/usr/share/bash-completion/completions
+AUTOCOMPLETE_DST=$(DESTDIR)$(prefix)/share/bash-completion/completions
SRC = Makefile Cargo.lock Cargo.toml $(shell find src -type f -wholename 'src/*.rs')
.PHONY: all clean distclean install uninstall vendor install_autocomplete
@@ -38,7 +38,7 @@ endif
install_autocomplete:
mkdir -p $(AUTOCOMPLETE_DST)
- cp src/bandwhich $(AUTOCOMPLETE_DST)/bandwhich
+ cp completion/bandwhich $(AUTOCOMPLETE_DST)/bandwhich
uninstall_autocomplete:
rm -f $(AUTOCOMPLETE_DST)/bandwhich
diff --git a/src/bandwhich b/completion/bandwhich
index 4b9cdff..4b9cdff 100644
--- a/src/bandwhich
+++ b/completion/bandwhich