diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-09-04 03:06:54 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-09-04 05:17:35 +0200 |
commit | ff96b34e47c81c7cf1afd39a0f2b19fcd96a25e5 (patch) | |
tree | 6cfa7251c60786fba85ca3efef7b6e116c3fc653 /Makefile | |
parent | a34d5ceaab1d8fd008173ea071555bd6346e02cf (diff) | |
download | pass-ff96b34e47c81c7cf1afd39a0f2b19fcd96a25e5.tar.gz pass-ff96b34e47c81c7cf1afd39a0f2b19fcd96a25e5.tar.bz2 pass-ff96b34e47c81c7cf1afd39a0f2b19fcd96a25e5.zip |
Prepare for debianification.1.0
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 |