2021-03-05 10:49:09 +01:00
|
|
|
NAME = uwufetch
|
2021-03-05 17:22:48 +01:00
|
|
|
FILES = uwufetch.c
|
2021-03-11 22:39:16 +01:00
|
|
|
FLAGS = -O3
|
|
|
|
FLAGS_DEBUG = -Wall -Wextra
|
2021-02-25 21:47:00 +01:00
|
|
|
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
|
|
|
|
2021-03-11 22:39:16 +01:00
|
|
|
debug:
|
2021-03-07 22:04:05 +01:00
|
|
|
clear
|
2021-03-11 22:39:16 +01:00
|
|
|
gcc $(FLAGS_DEBUG) -o $(NAME) $(FILES)
|
2021-03-12 11:00:37 +01:00
|
|
|
./uwufetch
|
2021-03-07 22:04:05 +01:00
|
|
|
|
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 17:15:42 +01:00
|
|
|
ls /usr/lib/uwufetch/ > /dev/null || sudo mkdir /usr/lib/uwufetch/
|
|
|
|
sudo cp res/* /usr/lib/uwufetch/
|
2021-03-05 12:03:09 +01:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
sudo rm $(INSTALL_DIR)$(NAME)
|
2021-03-07 17:15:42 +01:00
|
|
|
sudo rm -rf /usr/lib/uwufetch/
|
2021-03-07 00:19:03 +01:00
|
|
|
|
2021-03-07 22:04:05 +01:00
|
|
|
termux: build
|
|
|
|
cp $(NAME) /data/data/com.termux/files$(INSTALL_DIR)$(NAME)
|
|
|
|
ls /data/data/com.termux/files/usr/lib/uwufetch/ > /dev/null || mkdir /data/data/com.termux/files/usr/lib/uwufetch/
|
|
|
|
cp res/* /data/data/com.termux/files/usr/lib/uwufetch/
|
|
|
|
|
|
|
|
termux_uninstall:
|
|
|
|
rm -rf /data/data/com.termux/files$(INSTALL_DIR)$(NAME)
|
2021-03-12 11:00:37 +01:00
|
|
|
rm -rf /data/data/com.termux/files/usr/lib/uwufetch/
|