aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fe2e4a8..19fb8af 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,8 @@ CC = gcc
CFLAGS = -Wall -Wextra -Wundef -Wshadow -Wformat=2
PREFIX ?= /usr/local
TARGET = cfetch
+ASCII = ascii
+ASCII_DIR = /opt/$(TARGET)
SRC = src/cfetch.c \
src/sysinfo.c \
@@ -35,8 +37,12 @@ $(TARGET):
@echo "Finished install of $(TARGET)!"
install: $(TARGET)
+ @echo "Creating directories"
mkdir -p $(PREFIX)/bin
+ mkdir -p $(ASCII_DIR)
+ @echo "Installing $(TARGET)"
cp $(TARGET) $(PREFIX)/bin/$(TARGET)
+ cp -r $(ASCII) $(ASCII_DIR)
uninstall:
rm -f $(TARGET)