2021-06-28 15:24:16 +03:00
|
|
|
PREFIX ?= /usr
|
|
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
|
|
|
|
|
|
all:
|
2021-06-29 23:27:12 +03:00
|
|
|
@echo Run \'make install DESTDIR="${PREFIX}"\' to install Neofetch.
|
2021-06-28 15:24:16 +03:00
|
|
|
|
|
|
|
install:
|
|
|
|
@mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
|
|
@mkdir -p $(DESTDIR)$(MANDIR)/man1
|
|
|
|
@cp -p neofetch $(DESTDIR)$(PREFIX)/bin/neofetch
|
|
|
|
@cp -p neofetch.1 $(DESTDIR)$(MANDIR)/man1
|
|
|
|
@chmod 755 $(DESTDIR)$(PREFIX)/bin/neofetch
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@rm -rf $(DESTDIR)$(PREFIX)/bin/neofetch
|
|
|
|
@rm -rf $(DESTDIR)$(MANDIR)/man1/neofetch.1*
|