From e4d3ad1f4203a6cb01cae8995353062491e0f46e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 4 May 2018 19:52:08 +1000 Subject: [PATCH] general: Add back Makefile. --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..4adbd5f6 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +PREFIX ?= /usr +MANDIR ?= $(PREFIX)/share/man + +all: + @echo Run \'make install\' to install Neofetch. + +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*