aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md32
-rw-r--r--zh/README.md32
2 files changed, 64 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1a5dca44..d6cf35d4 100644
--- a/README.md
+++ b/README.md
@@ -126,12 +126,44 @@ Or download deb package to install it:
#### Compilation
+Compile and install:
+
```bash
$ git clone git@github.com:waruqi/xmake.git
$ cd ./xmake
$ ./scripts/get.sh __local__
```
+Only install and update lua scripts:
+
+```bash
+$ ./scripts/get.sh __local__ __install_only__
+```
+
+Uninstall:
+
+```bash
+$ ./scripts/get.sh __uninstall__
+```
+
+Or compile and install via make:
+
+```bash
+$ make build; sudo make install
+```
+
+Install to other given directory:
+
+```bash
+$ sudo make install prefix=/usr/local
+```
+
+Uninstall:
+
+```bash
+$ sudo make uninstall
+```
+
## Quick Start
[![asciicast](https://asciinema.org/a/133693.png)](https://asciinema.org/a/133693)
diff --git a/zh/README.md b/zh/README.md
index 92908d8b..92211632 100644
--- a/zh/README.md
+++ b/zh/README.md
@@ -154,12 +154,44 @@ $ sudo apt-get install xmake
#### 编译安装
+通过脚本编译安装:
+
```bash
$ git clone git@github.com:waruqi/xmake.git
$ cd ./xmake
$ ./scripts/get.sh __local__
```
+仅仅安装和更新xmake的lua脚本:
+
+```bash
+$ ./scripts/get.sh __local__ __install_only__
+```
+
+卸载:
+
+```bash
+$ ./scripts/get.sh __uninstall__
+```
+
+通过make进行编译安装:
+
+```bash
+$ make build; sudo make install
+```
+
+安装到其他指定目录:
+
+```bash
+$ sudo make install prefix=/usr/local
+```
+
+卸载:
+
+```bash
+$ sudo make uninstall
+```
+
## 快速开始
[![asciicast](https://asciinema.org/a/133693.png)](https://asciinema.org/a/133693)