neowofetch/Makefile

32 lines
802 B
Makefile
Raw Normal View History

2021-03-05 10:49:09 +01:00
NAME = uwufetch
FILES = uwufetch.c
FLAGS = -O3
FLAGS_DEBUG = -Wall -Wextra
INSTALL_DIR = /usr/bin/
2021-01-18 21:19:20 +01:00
build: uwufetch.c
gcc $(FLAGS) -o $(NAME) $(FILES)
2021-01-18 21:19:20 +01:00
debug:
@clear
gcc $(FLAGS_DEBUG) -o $(NAME) $(FILES)
2021-03-16 08:19:57 +01:00
./uwufetch
2021-01-18 21:19:20 +01:00
install:
cp $(NAME) $(INSTALL_DIR)$(NAME)
ls /usr/lib/uwufetch/ 2> /dev/null || mkdir /usr/lib/uwufetch/
cp res/* /usr/lib/uwufetch/
uninstall:
rm $(INSTALL_DIR)$(NAME)
rm -rf /usr/lib/uwufetch/
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)
rm -rf /data/data/com.termux/files/usr/lib/uwufetch/