aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAnser <rostgans@tutamail.com>2026-08-19 12:45:07 +0200
committerAnser <rostgans@tutamail.com>2026-08-19 21:48:52 +0200
commit5c42cc27e8a5240b2c200b7162f700f791e958f7 (patch)
treef55dbfd347722fa8c24bac4059ed94f101cd5ec2 /Makefile
parent4ec1b7740fa70e4433c9a47ff6cf59cd113fdc18 (diff)
added get_ascii_path - added global ascii folder in /opt/cfetch/
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)