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:
parent
e5ebb83bd9
commit
d984f2ccec
7
Makefile
7
Makefile
@ -1,12 +1,11 @@
|
|||||||
CC ?= cc
|
CC ?= cc
|
||||||
CFLAGS ?= -O2 -fPIC
|
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
|
|
||||||
all:
|
all:
|
||||||
curl -o v.c -LsSf https://raw.githubusercontent.com/vlang/vc/master/v.c
|
git clone --depth 1 --quiet https://github.com/vlang/vc
|
||||||
${CC} -std=gnu11 -w -o v v.c -lm
|
${CC} -std=gnu11 -w -o v vc/v.c -lm
|
||||||
./v -o v compiler
|
./v -o v compiler
|
||||||
rm v.c
|
rm -rf vc
|
||||||
@echo "V has been successfully built"
|
@echo "V has been successfully built"
|
||||||
|
|
||||||
symlink: v
|
symlink: v
|
||||||
|
6
make.bat
6
make.bat
@ -1,5 +1,5 @@
|
|||||||
curl -O https://raw.githubusercontent.com/vlang/vc/master/v_win.c
|
git clone --depth 1 --quiet https://github.com/vlang/vc
|
||||||
gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o v2.exe v_win.c
|
gcc -std=gnu11 -DUNICODE -D_UNICODE -w -o v2.exe vc/v_win.c
|
||||||
v2.exe -o v.exe compiler
|
v2.exe -o v.exe compiler
|
||||||
del v2.exe
|
del v2.exe
|
||||||
del v_win.c
|
rd /s /q vc
|
||||||
|
Loading…
Reference in New Issue
Block a user