From 39bc38233a02c352e62f7643d7b166f70cb4451b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 29 Nov 2019 11:29:37 +0200 Subject: [PATCH] android: support more termux users without make errors --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index ca0ab0a0f3..9f51de01c1 100644 --- a/Makefile +++ b/Makefile @@ -28,15 +28,20 @@ ifdef WIN32 rm -f v0.exe else $(CC) -std=gnu11 -w -o v vc/v.c $(LDFLAGS) -lm +ifdef ANDROID + chmod 755 v +endif @(VC_V=`./v version | cut -f 3 -d " "`; \ V_V=`git rev-parse --short HEAD`; \ if [ $$VC_V != $$V_V ]; then \ echo "Self rebuild ($$VC_V => $$V_V)"; \ ./v -o v v.v; \ fi) +ifndef ANDROID ./v build module vlib/builtin > /dev/null ./v build module vlib/strings > /dev/null ./v build module vlib/strconv > /dev/null +endif endif rm -rf vc/ @echo "V has been successfully built"