1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

make: remove curl dependency

This commit is contained in:
Alexander Medvednikov 2019-08-17 19:24:22 +03:00
parent e5ebb83bd9
commit d984f2ccec
2 changed files with 6 additions and 7 deletions

View File

@ -1,12 +1,11 @@
CC ?= cc
CFLAGS ?= -O2 -fPIC
PREFIX ?= /usr/local
all:
curl -o v.c -LsSf https://raw.githubusercontent.com/vlang/vc/master/v.c
${CC} -std=gnu11 -w -o v v.c -lm
git clone --depth 1 --quiet https://github.com/vlang/vc
${CC} -std=gnu11 -w -o v vc/v.c -lm
./v -o v compiler
rm v.c
rm -rf vc
@echo "V has been successfully built"
symlink: v

View File

@ -1,5 +1,5 @@
curl -O https://raw.githubusercontent.com/vlang/vc/master/v_win.c
gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o v2.exe v_win.c
git clone --depth 1 --quiet https://github.com/vlang/vc
gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o v2.exe vc/v_win.c
v2.exe -o v.exe compiler
del v2.exe
del v_win.c
rd /s /q vc