From ff96b34e47c81c7cf1afd39a0f2b19fcd96a25e5 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 4 Sep 2012 03:06:54 +0200 Subject: Prepare for debianification. --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3