diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,10 +1,14 @@ +PREFIX ?= /usr +DESTDIR ?= + all: @echo "Password store is a shell script, so there is nothing to do. Try \"make install\" instead." install: - @install -v src/password-store.sh /usr/bin/pass - @install -v man/pass.1 /usr/share/man/man1/pass.1 - @install -v bash-completion/pass-bash-completion.sh /usr/share/bash-completion/pass + @mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/share/man/man1 $(DESTDIR)/etc/bash_completion.d + @install -v src/password-store.sh $(DESTDIR)$(PREFIX)/bin/pass + @install -v man/pass.1 $(DESTDIR)$(PREFIX)/share/man/man1/pass.1 + @install -v bash-completion/pass-bash-completion.sh $(DESTDIR)/etc/bash_completion.d/password-store uninstall: - @rm -vf /usr/bin/pass /usr/share/man/man1/pass.1 /usr/share/bash-completion/pass + @rm -vf $(DESTDIR)$(PREFIX)/bin/pass $(DESTDIR)$(PREFIX)/share/man/man1/pass.1 $(DESTDIR)/etc/bash_completion.d/password-store |