2021-04-06 14:43:34 +02:00
|
|
|
NAME = uwufetch
|
|
|
|
FILES = uwufetch.c
|
|
|
|
CFLAGS = -O3
|
|
|
|
CFLAGS_DEBUG = -Wall -Wextra
|
|
|
|
PREFIX = /usr/bin
|
|
|
|
CC = cc
|
2021-01-18 21:19:20 +01:00
|
|
|
|
2021-04-06 14:43:34 +02:00
|
|
|
build: $(FILES)
|
|
|
|
$(CC) $(CFLAGS) -o $(NAME) $(FILES)
|
2021-01-18 21:19:20 +01:00
|
|
|
|
2021-03-11 22:39:16 +01:00
|
|
|
debug:
|
2021-03-17 10:38:48 +01:00
|
|
|
@clear
|
2021-04-06 14:43:34 +02:00
|
|
|
$(CC) $(CFLAGS_DEBUG) -o $(NAME) $(FILES)
|
2021-03-16 08:19:57 +01:00
|
|
|
./uwufetch
|
2021-03-07 22:04:05 +01:00
|
|
|
|
2021-01-18 21:19:20 +01:00
|
|
|
install:
|
2021-04-08 04:06:36 +02:00
|
|
|
cp $(NAME) $(DESTDIR)$(PREFIX)/$(NAME)
|
2021-04-06 14:43:34 +02:00
|
|
|
ls $(DESTDIR)/usr/lib/uwufetch/ 2> /dev/null || mkdir $(DESTDIR)/usr/lib/uwufetch/
|
|
|
|
cp res/* $(DESTDIR)/usr/lib/uwufetch/
|
2021-03-05 12:03:09 +01:00
|
|
|
|
|
|
|
uninstall:
|
2021-04-08 04:06:36 +02:00
|
|
|
rm -f $(DESTDIR)$(PREFIX)/$(NAME)
|
2021-04-06 14:43:34 +02:00
|
|
|
rm -rf $(DESTDIR)/usr/lib/uwufetch/
|
2021-03-07 00:19:03 +01:00
|
|
|
|
2021-03-07 22:04:05 +01:00
|
|
|
termux: build
|
2021-04-08 04:06:36 +02:00
|
|
|
cp $(NAME) $(DESTDIR)/data/data/com.termux/files$(PREFIX)/$(NAME)
|
2021-04-06 14:43:34 +02:00
|
|
|
ls $(DESTDIR)/data/data/com.termux/files/usr/lib/uwufetch/ > /dev/null || mkdir $(DESTDIR)/data/data/com.termux/files/usr/lib/uwufetch/
|
2021-03-07 22:04:05 +01:00
|
|
|
cp res/* /data/data/com.termux/files/usr/lib/uwufetch/
|
2021-04-06 14:43:34 +02:00
|
|
|
|
2021-03-07 22:04:05 +01:00
|
|
|
termux_uninstall:
|
2021-04-08 04:06:36 +02:00
|
|
|
rm -rf $(DESTDIR)/data/data/com.termux/files$(PREFIX)/$(NAME)
|
2021-04-06 14:43:34 +02:00
|
|
|
rm -rf $(DESTDIR)/data/data/com.termux/files/usr/lib/uwufetch/
|