Why open-lmake
Open-lmake is a generic and fearless build system running on Linux.
It is like make, except that it is practical, versatile, scalable and reliable.
It is reliable : never type make clean ever again.
It is reproducible : never complain "does not work on my machine" ever again.
It is unique in that:
- Dependencies are automatically detected through command spying (at libc or system call level).
- Rules are selected through full regular expressions allowing a complete decoupling between the flow (as described in the config file) and the project (as described by source files).
Also:
- Performance is excellent despite these apparently heavy features. Visit benchmarks.
- Config file (called
Lmakefile.py) is plain python: no DSL!.
- Native
slurm and SGE support.
- Fully traceable: you can retrieve logs, know why a job was run, who asked for it, when it was run, etc.
For a quick comparison with well-known tools (make, ninja, bazel, CMake) , visit quick comparison.
Using the vocabulary defined in Build Systems à la carte,
open-lmake is correct, monadic, restarting, self-tracking, keeps verifying traces, implements parallel execution, does early cutoff and implements dynamically allocated keys.
Optionally, it can keep constructive traces and be a cloud build system.
Its major goal is reliability and repeatability, stealing ideas from Building System Rules and Algorithms.
However our conclusions about implementation are different.
To understand why, visit why sticking to alpha algorithms.
If you are not sure you need open-lmake, visit who needs open-lmake.
The full documentation is here.
Installation
To install open-lmake under ubuntu 22.04 or ubuntu 24.04, you can use a pre-compiled package:
sudo add-apt-repository ppa:cdouady/open-lmake
sudo apt update
sudo apt install open-lmake
Or refer to full installation instructions.
First steps
You have man pages for all commands directly accessible.
However, the simplest way is to give it a try:
- You can copy examples/hello_world.dir at some place (you can ignore
tok and tok.err files if present).
- It is important to copy the example in a fresh directory because the script modifies the sources to mimic a session.
- In particular, if you want to restart, re-copy the example to a fresh directory.
cd into it.
- Run
./run
- Inspect
Lmakefile.py and run, they are abundantly commented.
Once you have understood what is going on with hello_world, you can repeat these steps with the second example examples/cc.dir.
AI assistants
A skill teaching AI coding assistants to write good Lmakefiles can be found in skills/lmakefile.
To install in Claude Code: /plugin marketplace add doliam-xtech/open-lmake then /plugin install lmakefile@open-lmake.
For other tools (claude.ai, Codex, Cursor, ...), see AI assistants.
Brief overview
Open-lmake does the following: