android: support more termux users without make errors

pull/2924/head
Delyan Angelov 2019-11-29 11:29:37 +02:00 committed by Alexander Medvednikov
parent 9e19472c33
commit 39bc38233a
1 changed files with 5 additions and 0 deletions

View File

@ -28,15 +28,20 @@ ifdef WIN32
rm -f v0.exe rm -f v0.exe
else else
$(CC) -std=gnu11 -w -o v vc/v.c $(LDFLAGS) -lm $(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 " "`; \ @(VC_V=`./v version | cut -f 3 -d " "`; \
V_V=`git rev-parse --short HEAD`; \ V_V=`git rev-parse --short HEAD`; \
if [ $$VC_V != $$V_V ]; then \ if [ $$VC_V != $$V_V ]; then \
echo "Self rebuild ($$VC_V => $$V_V)"; \ echo "Self rebuild ($$VC_V => $$V_V)"; \
./v -o v v.v; \ ./v -o v v.v; \
fi) fi)
ifndef ANDROID
./v build module vlib/builtin > /dev/null ./v build module vlib/builtin > /dev/null
./v build module vlib/strings > /dev/null ./v build module vlib/strings > /dev/null
./v build module vlib/strconv > /dev/null ./v build module vlib/strconv > /dev/null
endif
endif endif
rm -rf vc/ rm -rf vc/
@echo "V has been successfully built" @echo "V has been successfully built"