# cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. # Copyright (C) 2026 Anser # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # CC = gcc CFLAGS = -Wall -Wextra -Werror PREFIX ?= /usr/local SRC = src/cfetch.c \ src/modules/os/os.c \ src/modules/memory/memory.c \ src/modules/cpu/cpu.c \ src/logo/logo.c \ src/modules/utils/utils.c all: cfetch cfetch: $(CC) $(CFLAGS) $(SRC) -o cfetch -g @echo "Finished install of cfetch!" install: cfetch mkdir -p $(PREFIX)/bin cp cfetch $(PREFIX)/bin/cfetch uninstall: rm -f cfetch rm -f $(PREFIX)/bin/cfetch clean: rm -f cfetch