docs: update

This commit is contained in:
Dylan Araps 2019-02-25 08:31:33 +02:00
parent a5ed79486a
commit c4052ad9b5
1 changed files with 20 additions and 0 deletions

20
Makefile Normal file
View File

@ -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)