lua(jit)-based make alternative
- A luajit install that provides the include files and .dll/.so to link against (
git clone https://luajit.org/git/luajit.git
)- Linux: use
make install
- Windows: use
mingw32-make
or similar, then create aC:\luajit
folder and move the below files to it, then add the folder to the system path- headers:
luaxlib.h
,lua.h
,luaconf.h
,luajit.h
,lualib.h
- binaries:
luajit.exe
,lua51.dll
- headers:
- Note: vanilla lua could be used as well but
lake.guessOS
accuracy may suffer withoutjit.os
- Linux: use
- The LuaFileSystem library (
https://github.com/lunarmodules/luafilesystem.git
)- Linux: in
/usr/local/lib/lua/5.1
- Windows: in
C:\lake
- Note: (not technically required, but incremental builds will be disabled without it)
- Linux: in
- Windows:
mingw32-make -f Makefile.win
- Create
C:\lake
and movelake.exe
,lfs.dll
(from prerequisites), and thelua
folder to it, then add to path
- Create
- Linux:
make
- move
lake
executable to/usr/local/bin/
- move
lua/lake.lua
(just the file) to/usr/local/share/lua/5.1
- move
lfs.so
to/usr/local/lib/lua/5.1
, if not already there
- move
- Bootstrap:
lake prereqs
to install luajit and lfs (specify PREFIX, LIB_PATH, and INC_PATH as needed)lake install
to install lake (specify PREFIX, LIB_PATH, and INC_PATH as needed)
lake --help
will provide commandline usage tips for the tool
The scripts themselves are just lua files that use the implicitly linked lake.lua
library bundled with the application, anything valid in lua/luajit is valid in a script.
the provided make.lua
is a functional bootstrap buildscript and shows most features of the syntax and lake library functions.