From 24b64751e1c1a1db51c73a656d49b425bc390c40 Mon Sep 17 00:00:00 2001 From: Kerem Date: Sat, 24 Mar 2018 21:46:19 +0300 Subject: [PATCH] Added submodule fetch instructions. --- README.md | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 19ef96fae015c..2fabf29d34324 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,20 @@ Read ["Installation"] from [The Book]. ## Building from Source [building-from-source]: #building-from-source +### Checking out +1. Make sure you have installed `git`. +2. Clone the [source] with `git`: + + ```sh + $ git clone https://github.com/rust-lang/rust.git + $ cd rust + ``` +3. Clone submodules with `git`: + + ```sh + $ git submodule init + $ git submodule update + ``` ### Building on *nix 1. Make sure you have installed the dependencies: @@ -24,18 +38,10 @@ Read ["Installation"] from [The Book]. * GNU `make` 3.81 or later * `cmake` 3.4.3 or later * `curl` - * `git` - -2. Clone the [source] with `git`: - - ```sh - $ git clone https://github.com/rust-lang/rust.git - $ cd rust - ``` [source]: https://github.com/rust-lang/rust -3. Build and install: +2. Build and install: ```sh $ ./x.py build && sudo ./x.py install