diff options
author | Lukas Fleischer <info@cryptocrack.de> | 2013-08-26 18:32:51 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-08-26 18:34:50 +0200 |
commit | c832d4647439a0d504a310fba51f20dcb5051c47 (patch) | |
tree | ed7a8efd74c3dfaeb8b2e99a2e9254b1456aec94 /Makefile | |
parent | 0d9c02562ea5792fdf9691135a2b48f667a4c97d (diff) | |
download | pass-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 '')
-rw-r--r-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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" |