Skip to content

actboy168/luamake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

db9fb91 · Mar 24, 2025
Mar 12, 2025
Apr 9, 2022
Mar 24, 2025
Mar 21, 2025
Apr 26, 2024
Feb 28, 2025
Mar 13, 2025
Apr 3, 2023
Aug 29, 2021
Apr 25, 2024
Feb 27, 2023
Mar 23, 2023
Dec 31, 2018
May 9, 2024
Feb 26, 2024
Apr 25, 2024

Repository files navigation

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):

compile/install.bat

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

Install 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

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