1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/Makefile
Alexander Medvednikov a336775ae6
Makefile: use ./v
2019-08-16 23:31:45 +03:00

14 lines
274 B
Makefile

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
./v -o v compiler
rm v.c
@echo "V has been successfully built"
symlink: v
ln -sf `pwd`/v ${PREFIX}/bin/v