From c1758204dfa0faa07ad005174897fdadc9f1cfaf Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 8 Nov 2019 12:53:28 +0000 Subject: [PATCH] pash: simpler Makefile --- Makefile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index cb205f8..707c670 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,10 @@ PREFIX ?= /usr -DOCDIR ?= $(PREFIX)/share/doc/pash all: @echo Run \'make install\' to install pash. install: - @mkdir -p $(DESTDIR)$(PREFIX)/bin - @mkdir -p $(DESTDIR)$(DOCDIR) - @cp -p pash $(DESTDIR)$(PREFIX)/bin/pash - @cp -p README.md $(DESTDIR)$(DOCDIR) - @chmod 755 $(DESTDIR)$(PREFIX)/bin/pash + @install -Dm755 pash $(DESTDIR)$(PREFIX)/bin/pash uninstall: - @rm -rf $(DESTDIR)$(PREFIX)/bin/pash - @rm -rf $(DESTDIR)$(DOCDIR) + @rm -f $(DESTDIR)$(PREFIX)/bin/pash