diff options
Diffstat (limited to 'docs/luarocks_make.md')
-rw-r--r-- | docs/luarocks_make.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/luarocks_make.md b/docs/luarocks_make.md new file mode 100644 index 00000000..88629334 --- /dev/null +++ b/docs/luarocks_make.md | |||
@@ -0,0 +1,27 @@ | |||
1 | # luarocks make | ||
2 | |||
3 | Compile package in current directory using a rockspec. | ||
4 | |||
5 | ## Usage | ||
6 | |||
7 | `luarocks make [--pack-binary-rock] [<rockspec>]` | ||
8 | |||
9 | Builds sources in the current directory, but unlike [luarocks | ||
10 | build](luarocks_build.md), it does not fetch sources, etc., assuming | ||
11 | everything is available in the current directory. After the build is complete, | ||
12 | it also installs the rock. | ||
13 | |||
14 | If no argument is given, it looks for a rockspec in the current directory and | ||
15 | in `./rockspec` and `./rockspecs` subdirectories. Of all the rockspecs the one | ||
16 | with the highest version is used. If rockspecs for more than one rock are | ||
17 | found, you must specify which one to use through the command-line. | ||
18 | |||
19 | If `--pack-binary-rock` is passed, the rock is not installed; instead, a | ||
20 | `.rock` file with the contents of compilation is produced in the current | ||
21 | directory. | ||
22 | |||
23 | ## Example | ||
24 | |||
25 | ``` | ||
26 | luarocks make | ||
27 | ``` | ||