From 335dfdffecf8385044a585ff2b8f1b671e894ae7 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Fri, 23 Feb 2018 23:08:51 -0500 Subject: Update documentation --- Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 + -- cgit v1.2.3