Merged linux and termux installation targets. Updated Readme

This commit is contained in:
TheDarkBug 2022-01-29 12:00:48 +01:00
parent bce463bf73
commit e69aa5566d
2 changed files with 9 additions and 13 deletions

View file

@ -4,17 +4,15 @@ CFLAGS = -O3
CFLAGS_DEBUG = -Wall -Wextra -g -pthread CFLAGS_DEBUG = -Wall -Wextra -g -pthread
CC = cc CC = cc
DESTDIR = /usr DESTDIR = /usr
PLATFORM = $(shell uname -o) PLATFORM = $(shell uname)
ifeq ($(PLATFORM), GNU/Linux) ifeq ($(PLATFORM), Linux)
PREFIX = bin
LIBDIR = lib
MANDIR = share/man/man1
else ifeq ($(PLATFORM), Android)
PREFIX = bin PREFIX = bin
LIBDIR = lib LIBDIR = lib
MANDIR = share/man/man1 MANDIR = share/man/man1
ifeq ($(shell uname -o), Android)
DESTDIR = /data/data/com.termux/file DESTDIR = /data/data/com.termux/file
endif
else ifeq ($(PLATFORM), Darwin) else ifeq ($(PLATFORM), Darwin)
PREFIX = local/bin PREFIX = local/bin
LIBDIR = local/lib LIBDIR = local/lib

View file

@ -55,7 +55,7 @@ To install UwUfetch from the source, type these commands in the terminal:
git clone https://github.com/TheDarkBug/uwufetch.git git clone https://github.com/TheDarkBug/uwufetch.git
cd uwufetch cd uwufetch
make build # add "CFLAGS+=-D__IPHONE__" if you are building for iOS make build # add "CFLAGS+=-D__IPHONE__" if you are building for iOS
sudo make install # for termux, use `make termux` sudo make install
``` ```
To uninstall: To uninstall:
@ -72,8 +72,6 @@ make build # builds uwufetch
make debug # use for debug make debug # use for debug
make install # installs uwufetch (needs root permissons) make install # installs uwufetch (needs root permissons)
make uninstall # uninstalls uwufetch (needs root permissons) make uninstall # uninstalls uwufetch (needs root permissons)
make termux # build and install for termux
make termux_uninstall # uninstall for termux
``` ```
## Images and copyright info ## Images and copyright info