From 588ecf3414f6b52e76ca63278ede477c69c9654e Mon Sep 17 00:00:00 2001 From: Palanix Date: Thu, 10 Jun 2021 16:44:30 +0200 Subject: [PATCH] small fix in artix.h and config.h has been replaced by config.pre.h, although config.h still has to be edited for any changes to be made --- .gitignore | 1 + Makefile | 16 +++++++++++++++- config.h => config.pre.h | 2 +- logos/artix.h | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) rename config.h => config.pre.h (96%) diff --git a/.gitignore b/.gitignore index 436d61d..ca89e44 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ wayfetch +config.h diff --git a/Makefile b/Makefile index 2b7efdf..9f45ad6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,18 @@ -CC=gcc +all: wayfetch + +clean: + rm -f wayfetch + +install: wayfetch + install -D wayfetch /bin/wayfetch + +uninstall: + rm -f /bin/wayfetch + +.PHONY: all clean install uninstall + +config: | config.pre.h + cp config.pre.h $@ wayfetch: wayfetch.c gcc -o wayfetch wayfetch.c diff --git a/config.h b/config.pre.h similarity index 96% rename from config.h rename to config.pre.h index eb75294..3748314 100644 --- a/config.h +++ b/config.pre.h @@ -1,4 +1,4 @@ -#include "logos/mint.h" +#include "logos/artix.h" //here you can define which logo wayfetch is going to use. See logos folder for available options #define PACDIR "/var/lib/pacman/local" // here are all packages incase of pacman char info[ROWS][150]; diff --git a/logos/artix.h b/logos/artix.h index 58cc71a..3cb315d 100644 --- a/logos/artix.h +++ b/logos/artix.h @@ -1,4 +1,4 @@ -#include "color.h" +#include "../color.h" #define COLOR CYAN #define ROWS 20 char *logo[] = {