In the last round I wanted to replace everything with a lua implementation. Today, I want to take a step back and only replaces the autotools :)
On one side this follows the idea of cmake a bit more and on the other side it takes in account that make is isn't the evil guy here. Let make do the make job, let lua generate the makefile.
Ok, to put it in other words: we don't care who is building our code in the end. May it be Prime Mover, gnu make or nmake on windows.
It turns out that this task is more tricky in the end. Especially if you are crazy and want to build it Makefile.am files. Yes, the Makefile.am from automake as input to generate the Makefile. For now I go the route of a central Makefile that has everything (somewhat following the "Recursive Makefile considered Harmful" paper).
Let's see how much this hurts.