actboy168/luamake

210

stars

1,087

commits

Lua

primary language

Sep 4, 2026

updated

README

luamake

Install Instructions

1. Clone repo and submodules

git clone https://github.com/actboy168/luamake
cd luamake
git submodule update --init

2. Install:

Windows (msvc):

  • Install Visual Studio
compile/install.bat

Linux / MacOS / Android / NetBSD / FreeBSD / OpenBSD / Windows (mingw)

  • Install gcc, g++, ninja
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

compile lua2c (single binary with embedded scripts)

msvc > compile/build.bat lua2c
other> compile/build.sh lua2c

Quick Start

Create file make.lua. For example, this is a make.lua to compile lua:

local lm = require "luamake"
lm:exe "lua" {
    sources = {
        "src/*.c",
        "!src/luac.c" -- ignore luac.c
    }
}

Build

$ luamake

Run

$ ./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

Documentation

See skills/SKILL.md for the full guide on writing make.lua.

Contributors

actboy168

1,077 commits

cootshk

2 commits

tqfx

2 commits

passos

1 commits

actboy168/luamake

210

stars

1,087

commits

Lua

primary language

Sep 4, 2026

updated

README

luamake

Install Instructions

1. Clone repo and submodules

git clone https://github.com/actboy168/luamake
cd luamake
git submodule update --init

2. Install:

Windows (msvc):

  • Install Visual Studio
compile/install.bat

Linux / MacOS / Android / NetBSD / FreeBSD / OpenBSD / Windows (mingw)

  • Install gcc, g++, ninja
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

compile lua2c (single binary with embedded scripts)

msvc > compile/build.bat lua2c
other> compile/build.sh lua2c

Quick Start

Create file make.lua. For example, this is a make.lua to compile lua:

local lm = require "luamake"
lm:exe "lua" {
    sources = {
        "src/*.c",
        "!src/luac.c" -- ignore luac.c
    }
}

Build

$ luamake

Run

$ ./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

Documentation

See skills/SKILL.md for the full guide on writing make.lua.

Contributors

actboy168

1,077 commits

cootshk

2 commits

tqfx

2 commits

passos

1 commits

Languages

Lua

92.7%

C

3.4%

Batchfile

2.3%

Shell

1.7%