revert: makefile changes

This commit is contained in:
Dylan Araps 2018-06-05 10:56:13 +10:00
parent ea7e8531e9
commit 552b0dd6bc

View file

@ -1,6 +1,5 @@
PREFIX ?= /usr
MANDIR ?= $(PREFIX)/share/man
COMDIR ?= $(PREFIX)/share/bash-completion/completions
all:
@echo Run \'make install\' to install Neofetch.
@ -8,13 +7,10 @@ all:
install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@mkdir -p $(DESTDIR)$(MANDIR)/man1
@mkdir -p $(DESTDIR)$(COMDIR)
@cp -p neofetch $(DESTDIR)$(PREFIX)/bin/neofetch
@cp -p neofetch.1 $(DESTDIR)$(MANDIR)/man1
@cp -p completions/neofetch-completion.bash $(DESTDIR)$(COMDIR)/neofetch
@chmod 755 $(DESTDIR)$(PREFIX)/bin/neofetch
uninstall:
@rm -rf $(DESTDIR)$(PREFIX)/bin/neofetch
@rm -rf $(DESTDIR)$(MANDIR)/man1/neofetch.1*
@rm -rf $(DESTDIR)$(COMDIR)/neofetch