From c4052ad9b5a7c8d676da5df579cbb89d3c314bc6 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 25 Feb 2019 08:31:33 +0200 Subject: [PATCH] docs: update --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a2e7f2c --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +PREFIX ?= /usr +# MANDIR ?= $(PREFIX)/share/man +DOCDIR ?= $(PREFIX)/share/doc/pash + +all: + @echo Run \'make install\' to install pash. + +install: + @mkdir -p $(DESTDIR)$(PREFIX)/bin + # @mkdir -p $(DESTDIR)$(MANDIR)/man1 + @mkdir -p $(DESTDIR)$(DOCDIR) + @cp -p pash $(DESTDIR)$(PREFIX)/bin/pash + # @cp -p pash.1 $(DESTDIR)$(MANDIR)/man1 + @cp -p README.md $(DESTDIR)$(DOCDIR) + @chmod 755 $(DESTDIR)$(PREFIX)/bin/pash + +uninstall: + @rm -rf $(DESTDIR)$(PREFIX)/bin/pash + # @rm -rf $(DESTDIR)$(MANDIR)/man1/pash.1 + @rm -rf $(DESTDIR)$(DOCDIR)