readme: new simpler instructions

pull/794/head
Alexander Medvednikov 2019-06-29 12:58:52 +02:00 committed by GitHub
parent 5b7a1e84a4
commit 882700dd1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -54,7 +54,7 @@ You'll need Clang or GCC. On macOS run `xcode-select --install` if you don't hav
```bash
# You can clone V anywhere
git clone https://github.com/vlang/v
cd v/compiler
cd v
make
```
Or build without make:
@ -66,20 +66,18 @@ cc -std=gnu11 -w -o v v.c # Build it with Clang or GCC
./v -o v . # Build the compiler again to make sure it works
```
That's it! Now you have a V executable at `v/compiler/v`.
That's it! Now you have a V executable at `[path to V repo]/v`.
You can create a symlink so that it's globally available:
```
sudo ln -s [path to V repo]/compiler/v /usr/local/bin/v
sudo ln -s [path to V repo]/v /usr/local/bin/v
```
V is being constantly updated. To update V, simply run
```
git pull origin master
cd compiler/
make clean
make
```