31 lines
813 B
Makefile
31 lines
813 B
Makefile
NAME = uwufetch
|
|
FILES = uwufetch.c
|
|
FLAGS = -O3
|
|
FLAGS_DEBUG = -Wall -Wextra
|
|
INSTALL_DIR = /usr/bin/
|
|
|
|
build: uwufetch.c
|
|
gcc $(FLAGS) -o $(NAME) $(FILES)
|
|
|
|
debug:
|
|
clear
|
|
gcc $(FLAGS_DEBUG) -o $(NAME) $(FILES)
|
|
./uwufetch -d raspbian
|
|
|
|
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/
|