Fix ETC_DIR for unrooted Android/Termux

On unrooted phones this will cause permission denied error. Or we are targeting only rooted Android devices?
This commit is contained in:
Legend 2022-03-26 00:17:07 +03:00 committed by GitHub
parent d6ed9130fb
commit d03cce5fb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ ifeq ($(PLATFORM), Linux)
MANDIR = share/man/man1
ifeq ($(shell uname -o), Android)
DESTDIR = /data/data/com.termux/files/usr
ETC_DIR = $(DESTDIR)/etc
endif
else ifeq ($(PLATFORM), Darwin)
PREFIX = local/bin