Makefile: New Makefile
This commit is contained in:
parent
02564a1b0c
commit
347ac94749
1 changed files with 13 additions and 17 deletions
30
Makefile
30
Makefile
|
@ -1,24 +1,20 @@
|
|||
PREFIX ?= /usr
|
||||
RM ?= rm -f
|
||||
INSTALL_DIR ?= install -m755 -d
|
||||
INSTALL_PROG ?= install -m755
|
||||
INSTALL_FILE ?= install -m644
|
||||
PREFIX = /usr
|
||||
|
||||
all:
|
||||
@echo Run \'make install\' to install Neofetch
|
||||
|
||||
install:
|
||||
$(INSTALL_DIR) $(DESTDIR)$(PREFIX)/bin
|
||||
$(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/neofetch/ascii/distro
|
||||
$(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/man/man1
|
||||
$(INSTALL_PROG) neofetch $(DESTDIR)$(PREFIX)/bin/neofetch
|
||||
$(INSTALL_FILE) neofetch.1 $(DESTDIR)$(PREFIX)/share/man/man1/neofetch.1
|
||||
$(INSTALL_FILE) config/config $(DESTDIR)$(PREFIX)/share/neofetch/config
|
||||
$(INSTALL_FILE) ascii/distro/* $(DESTDIR)$(PREFIX)/share/neofetch/ascii/distro
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
|
||||
mkdir -p $(DESTDIR)/etc/neofetch
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/share/neofetch/ascii/distro
|
||||
cp -p neofetch $(DESTDIR)$(PREFIX)/bin/neofetch
|
||||
cp -p neofetch.1 $(DESTDIR)$(PREFIX)/share/man/man1/neofetch.1
|
||||
cp -p config/config $(DESTDIR)/etc/neofetch/config
|
||||
cp -p ascii/distro/* $(DESTDIR)$(PREFIX)/share/neofetch/ascii/distro
|
||||
|
||||
uninstall:
|
||||
$(RM) $(DESTDIR)$(PREFIX)/bin/neofetch
|
||||
$(RM) $(DESTDIR)$(PREFIX)/share/man/man1/neofetch.1
|
||||
$(RM) -r $(DESTDIR)$(PREFIX)/share/neofetch
|
||||
|
||||
|
||||
rm -f $(DESTDIR)$(PREFIX)/bin/neofetch
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/neofetch.1
|
||||
rm -f -r $(DESTDIR)$(PREFIX)/share/neofetch
|
||||
rm -f -r $(DESTDIR)/etc/neofetch
|
||||
|
|
Loading…
Reference in a new issue