pash: simpler Makefile

This commit is contained in:
Dylan Araps 2019-11-08 12:53:28 +00:00
parent e1c4b77147
commit c1758204df
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 8 deletions

View File

@ -1,16 +1,10 @@
PREFIX ?= /usr PREFIX ?= /usr
DOCDIR ?= $(PREFIX)/share/doc/pash
all: all:
@echo Run \'make install\' to install pash. @echo Run \'make install\' to install pash.
install: install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin @install -Dm755 pash $(DESTDIR)$(PREFIX)/bin/pash
@mkdir -p $(DESTDIR)$(DOCDIR)
@cp -p pash $(DESTDIR)$(PREFIX)/bin/pash
@cp -p README.md $(DESTDIR)$(DOCDIR)
@chmod 755 $(DESTDIR)$(PREFIX)/bin/pash
uninstall: uninstall:
@rm -rf $(DESTDIR)$(PREFIX)/bin/pash @rm -f $(DESTDIR)$(PREFIX)/bin/pash
@rm -rf $(DESTDIR)$(DOCDIR)