neowofetch/Makefile

21 lines
411 B
Makefile
Raw Normal View History

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