From d03cce5fb5f54016f0109003d7faea9c68b68cbf Mon Sep 17 00:00:00 2001 From: Legend <100516800+FoIIower@users.noreply.github.com> Date: Sat, 26 Mar 2022 00:17:07 +0300 Subject: [PATCH] Fix ETC_DIR for unrooted Android/Termux On unrooted phones this will cause permission denied error. Or we are targeting only rooted Android devices? --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 1e48a85..8c575b0 100644 --- a/Makefile +++ b/Makefile @@ -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