make: remove curl dependency
parent
e5ebb83bd9
commit
d984f2ccec
7
Makefile
7
Makefile
|
@ -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
|
||||
|
|
6
make.bat
6
make.bat
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue