aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index d0b916d..88ed5f4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
PROG ?= otp
-PREFIX ?= /usr
+PREFIX ?= /usr/local
DESTDIR ?=
LIBDIR ?= $(PREFIX)/lib
SYSTEM_EXTENSION_DIR ?= $(LIBDIR)/password-store/extensions
-MANDIR ?= $(PREFIX)/share/man
+MANDIR ?= $(PREFIX)/man
BASHCOMPDIR ?= /etc/bash_completion.d
all:
@@ -15,17 +15,17 @@ all:
@echo " password store"
install:
- @install -v -d "$(DESTDIR)$(MANDIR)/man1" && install -m 0644 -v pass-$(PROG).1 "$(DESTDIR)$(MANDIR)/man1/pass-$(PROG).1"
- @install -v -d "$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/"
- @install -v -m0755 $(PROG).bash "$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/$(PROG).bash"
- @install -v -d "$(DESTDIR)$(BASHCOMPDIR)/"
- @install -v -m 644 pass-otp.bash.completion "$(DESTDIR)$(BASHCOMPDIR)/pass-otp"
+ install -d "$(DESTDIR)$(MANDIR)/man1" && install -m 0644 pass-$(PROG).1 "$(DESTDIR)$(MANDIR)/man1/pass-$(PROG).1"
+ install -d "$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/"
+ install -m0755 $(PROG).bash "$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/$(PROG).bash"
+ install -d "$(DESTDIR)$(BASHCOMPDIR)/"
+ install -m 644 pass-otp.bash.completion "$(DESTDIR)$(BASHCOMPDIR)/pass-otp"
@echo
@echo "pass-$(PROG) is installed succesfully"
@echo
uninstall:
- @rm -vrf \
+ rm -vrf \
"$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/$(PROG).bash" \
"$(DESTDIR)$(MANDIR)/man1/pass-$(PROG).1" \
"$(DESTDIR)$(BASHCOMPDIR)/pass-otp"