2021-03-05 10:49:09 +01:00
|
|
|
NAME = uwufetch
|
2021-03-05 17:22:48 +01:00
|
|
|
FILES = uwufetch.c
|
2021-02-25 21:47:00 +01:00
|
|
|
FLAGS = -O3 -Wall -Wextra
|
|
|
|
INSTALL_DIR = /usr/bin/
|
|
|
|
all: build install
|
2021-01-18 21:19:20 +01:00
|
|
|
|
2021-03-05 17:22:48 +01:00
|
|
|
build: uwufetch.c
|
2021-02-25 21:47:00 +01:00
|
|
|
gcc $(FLAGS) -o $(NAME) $(FILES)
|
2021-01-18 21:19:20 +01:00
|
|
|
|
|
|
|
install:
|
2021-03-05 12:03:09 +01:00
|
|
|
sudo cp $(NAME) $(INSTALL_DIR)$(NAME)
|
2021-03-07 15:30:32 +01:00
|
|
|
ls ~/.config/uwufetch 1> /dev/null || mkdir ~/.config/uwufetch/
|
2021-03-06 21:17:29 +01:00
|
|
|
cp res/* ~/.config/uwufetch/
|
2021-03-05 12:03:09 +01:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
sudo rm $(INSTALL_DIR)$(NAME)
|
2021-03-06 21:17:29 +01:00
|
|
|
rm -rf ~/.config/uwufetch
|
2021-03-07 00:19:03 +01:00
|
|
|
|
2021-03-07 15:30:32 +01:00
|
|
|
debug: build install
|
2021-03-07 00:19:03 +01:00
|
|
|
clear
|
|
|
|
./uwufetch
|