m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-09-04 03:06:54 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-09-04 05:17:35 +0200
commitff96b34e47c81c7cf1afd39a0f2b19fcd96a25e5 (patch)
tree6cfa7251c60786fba85ca3efef7b6e116c3fc653 /Makefile
parenta34d5ceaab1d8fd008173ea071555bd6346e02cf (diff)
Prepare for debianification.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7c78ed3..050b6f6 100644
--- a/Makefile
+++ b/Makefile
@@ -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