major update

This commit is contained in:
Puechberty Arthur
2026-06-26 21:41:36 +02:00
parent d30398c705
commit 9e02e75a98
13 changed files with 293 additions and 51 deletions
+25
View File
@@ -0,0 +1,25 @@
CC = gcc
CFLAGS = -Wall -Wextra -O3 -s
TARGET = optifetch
SRC = main.c sysinfo.c logos.c config.c renderer.c
all: $(TARGET)
$(TARGET): $(SRC)
$(CC) $(CFLAGS) -o $(TARGET) $(SRC)
install: $(TARGET)
mkdir -p $(DESTDIR)/usr/bin
cp $(TARGET) $(DESTDIR)/usr/bin/
mkdir -p $(DESTDIR)/usr/share/optifetch/logos
cp -r logos/*.txt $(DESTDIR)/usr/share/optifetch/logos/ 2>/dev/null || true
mkdir -p $(DESTDIR)/etc
cp optifetch.conf $(DESTDIR)/etc/optifetch.conf 2>/dev/null || touch $(DESTDIR)/etc/optifetch.conf
uninstall:
rm -f $(DESTDIR)/usr/bin/$(TARGET)
rm -rf $(DESTDIR)/usr/share/optifetch
rm -f $(DESTDIR)/etc/optifetch.conf
clean:
rm -f $(TARGET)