From d984f2ccece191d80ebe0bad59f5389d41c489e6 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 17 Aug 2019 19:24:22 +0300 Subject: [PATCH] make: remove curl dependency --- Makefile | 7 +++---- make.bat | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 0e835bee66..e4795c155d 100644 --- a/Makefile +++ b/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 diff --git a/make.bat b/make.bat index ed5dfd212e..df1c6d78c0 100644 --- a/make.bat +++ b/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