Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/actboy168/luamake
https://github.com/actboy168/luamake
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/actboy168/luamake
- Owner: actboy168
- License: mit
- Created: 2018-12-31T13:15:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T14:49:22.000Z (9 months ago)
- Last Synced: 2024-04-13T23:07:38.067Z (9 months ago)
- Language: Lua
- Homepage:
- Size: 1.62 MB
- Stars: 144
- Watchers: 9
- Forks: 36
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# luamake
## Install Instructions
### 1. Clone repo and submodules
```bash
git clone https://github.com/actboy168/luamake
cd luamake
git submodule update --init
```### 2. Install:
#### Windows (msvc):
```
compile/install.bat
```#### Linux / MacOS / Android / NetBSD / FreeBSD / OpenBSD / Windows (mingw)
[Install Ninja](https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages)
```
compile/install.sh
```
or
```
sudo -s compile/install.sh
```### 3. Useful Build Commands
compile
```
msvc > compile/build.bat
other> compile/build.sh
```compile and skip test
```
msvc > compile/build.bat notest
other> compile/build.sh notest
```clean
```
msvc > compile/build.bat -t clean
other> compile/build.sh -t clean
```## Quick Start
Create file `make.lua`. For example, this is a `make.lua` to compile lua:
``` lua
local lm = require "luamake"
lm:exe "lua" {
sources = {
"src/*.c",
"!src/luac.c" -- ignore luac.c
}
}
```Build
``` bash
$ luamake
```Run
``` bash
$ ./build/bin/lua
```## Commands
> luamake
Build your project.
> luamake clean
Clean build output.
> luamake rebuild
Equivalent to `luamake clean && luamake`
> luamake lua [lua filename]
Run lua file.
> luamake test
Equivalent to `luamake lua test.lua`