forked from dylanaraps/neofetch
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Muhammad Herdiansyah
committed
Jul 11, 2017
1 parent
ca79558
commit dcb006f
Showing
2 changed files
with
23 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
PREFIX = /usr | ||
PREFIX ?= /usr | ||
SYSCONFDIR ?= /etc | ||
|
||
all: | ||
@echo Run 'make install' to install Neofetch. | ||
@echo Run \'make install\' to install Neofetch. | ||
|
||
install: | ||
DESTDIR="${DESTDIR}" PREFIX="$(PREFIX)" ./install.sh | ||
@echo 'Making directories...' | ||
@mkdir -p $(DESTDIR)$(PREFIX)/bin | ||
@mkdir -p $(DESTDIR)$(PREFIX)/share/neofetch/ascii/distro | ||
@mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 | ||
@mkdir -p $(DESTDIR)$(SYSCONFDIR)/neofetch | ||
|
||
@echo 'Installing binaries...' | ||
@sed "s|ASCIIDIR|$(PREFIX)/share/neofetch/ascii/distro|g;s|CONFDIR|$(SYSCONFDIR)/neofetch|g" < neofetch > $(DESTDIR)$(PREFIX)/bin/neofetch | ||
|
||
@echo 'Installing ASCII files, man page and config file...' | ||
@cp -p ascii/distro/* $(DESTDIR)$(PREFIX)/share/neofetch/ascii/distro | ||
@cp -p neofetch.1 $(DESTDIR)$(PREFIX)/share/man/man1 | ||
@cp -p config/config.conf $(DESTDIR)$(SYSCONFDIR)/neofetch/config.conf | ||
|
||
uninstall: | ||
@echo 'Removing files...' | ||
@rm -rf $(DESTDIR)$(PREFIX)/bin/neofetch | ||
@rm -rf $(DESTDIR)$(PREFIX)/share/man/man1/neofetch.1* | ||
@rm -rf $(DESTDIR)$(PREFIX)/share/neofetch | ||
@rm -rf $(DESTDIR)$(SYSCONFDIR)/neofetch |
This file was deleted.
Oops, something went wrong.