From ca79558e3b9291fecc430ea6139309706c921e7a Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Mon, 10 Jul 2017 19:01:06 +0700 Subject: [PATCH] Squash later --- Makefile | 2 ++ install.sh | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4c797eadf..3fe6a3d20 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +PREFIX = /usr + all: @echo Run 'make install' to install Neofetch. diff --git a/install.sh b/install.sh index 9d617f7e1..42c14910b 100755 --- a/install.sh +++ b/install.sh @@ -24,11 +24,10 @@ mkdir -p "${DESTDIR}""${PREFIX}""${MANDIR}" sed -i -e "s|ASCIIDIR|${PREFIX}${ASCIIDIR}|g" neofetch cp -p neofetch "${DESTDIR}""${PREFIX}""${BINDIR}" -cp -p config/config.conf "${DESTDIR}""${PREFIX}""${CONFDIR}" cp -p ascii/distro/* "${DESTDIR}""${PREFIX}""${ASCIIDIR}" cp -p neofetch.1 "${DESTDIR}""${PREFIX}""${MANDIR}" -if [ -z "$PREFIX" ] || [ "$PREFIX" = "/usr" ]; then +if [ "$PREFIX" = "/usr" ]; then mkdir -p "${DESTDIR}""${CONFDIR}" sed -i -e "s|CONFDIR|${CONFDIR}|g" neofetch cp -p config/config.conf "${DESTDIR}""${CONFDIR}"