aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2018-02-23 23:08:51 -0500
committerBen Burwell <ben@benburwell.com>2018-02-24 00:31:17 -0500
commit335dfdffecf8385044a585ff2b8f1b671e894ae7 (patch)
tree1f84e928e66f1374df34078f094b152e27db4b3f /Makefile
parent6ec8b3e334dd35dd8c7a168d3a182a5bd3289c9f (diff)
Update documentationHEADv0.1.0master
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..18e949a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+PREFIX ?= /usr
+LIB_DIR ?= $(PREFIX)/lib
+EXTENSION_DIR ?= $(LIB_DIR)/password-store/extensions
+MAN_DIR ?= $(PREFIX)/share/man
+
+info:
+ @echo "pass-audit is a shell script that goes into your pass extensions"
+ @echo "folder"
+ @echo ""
+ @echo "To install, simply run \"make install\". On macOS, you will need to"
+ @echo "run \"make install PREFIX=/usr/local\"."
+ @echo ""
+ @echo "To use pass-audit, you will beed to install password store"
+ @echo "(https://www.passwordstore.org/)"
+
+install:
+ @install -v -d "$(MAN_DIR)/man1" && install -m 0644 -v pass-audit.1 "$(MAN_DIR)/man1/pass-audit.1"
+ @install -v -d "$(EXTENSION_DIR)/" && install -m 0755 audit.bash "$(EXTENSION_DIR)/audit.bash"
+ @echo "pass-audit has been installed."
+ @echo ""
+ @echo "Try running \"pass audit --help\" or \"man pass-audit\" for info."
+
+uninstall:
+ @rm -vrf \
+ "$(MAN_DIR)/man1/pass-audit.1" \
+ "$(EXTENSION_DIR)/audit.bash"
+
+.PHONY: info install uninstall
+