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-06 21:17:29 +01:00
|
|
|
mkdir ~/.config/uwufetch/
|
|
|
|
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
|