mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
14 lines
257 B
Makefile
14 lines
257 B
Makefile
CC ?= cc
|
|
PREFIX ?= /usr/local
|
|
|
|
all:
|
|
rm -rf vc/
|
|
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 -rf vc/
|
|
@echo "V has been successfully built"
|
|
|
|
symlink: v
|
|
ln -sf `pwd`/v ${PREFIX}/bin/v
|