summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLukas Fleischer <info@cryptocrack.de>2013-08-26 18:32:51 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2013-08-26 18:34:50 +0200
commitc832d4647439a0d504a310fba51f20dcb5051c47 (patch)
treeed7a8efd74c3dfaeb8b2e99a2e9254b1456aec94 /Makefile
parent0d9c02562ea5792fdf9691135a2b48f667a4c97d (diff)
downloadpass-c832d4647439a0d504a310fba51f20dcb5051c47.tar.gz
pass-c832d4647439a0d504a310fba51f20dcb5051c47.tar.bz2
pass-c832d4647439a0d504a310fba51f20dcb5051c47.zip
Makefile: Do not install bash completion to /etc
`make install` should never install anything to /etc. "/usr/share/bash-completion/completions/" is the right place for completions that are installed by software packages. Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8735c7b..d134f26 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,6 @@ DESTDIR ?=
BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/lib
MANDIR ?= $(PREFIX)/share/man
-SYSCONFDIR ?= /etc
PLATFORMFILE := src/platform/$(shell uname | tr '[:upper:]' '[:lower:]').sh
@@ -16,7 +15,7 @@ install:
@mkdir -p "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(LIBDIR)" "$(DESTDIR)$(MANDIR)/man1" "$(DESTDIR)$(SYSCONFDIR)/bash_completion.d"
@install -m 0755 -v src/password-store.sh "$(DESTDIR)$(BINDIR)/pass"
@install -m 0644 -v man/pass.1 "$(DESTDIR)$(MANDIR)/man1/pass.1"
- @install -m 0644 -v contrib/pass.bash-completion "$(DESTDIR)$(SYSCONFDIR)/bash_completion.d/password-store"
+ @install -m 0644 -v contrib/pass.bash-completion "$(DESTDIR)$(PREFIX)/share/bash-completion/completions/password-store"
# Uncomment to install the zsh completion file.
# @install -m 0644 -v contrib/pass.zsh-completion "$(DESTDIR)$(PREFIX)/share/zsh/site-functions/_pass"
@@ -36,4 +35,4 @@ install-platform:
endif
uninstall:
- @rm -vf "$(DESTDIR)$(BINDIR)/pass" "$(DESTDIR)$(MANDIR)/man1/pass.1" "$(DESTDIR)$(SYSCONFDIR)/bash_completion.d/password-store" "$(DESTDIR)$(LIBDIR)/password-store.platform.sh"
+ @rm -vf "$(DESTDIR)$(BINDIR)/pass" "$(DESTDIR)$(MANDIR)/man1/pass.1" "$(DESTDIR)$(PREFIX)/share/bash-completion/completions/password-store" "$(DESTDIR)$(LIBDIR)/password-store.platform.sh"