lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



...which brought to my mind, that Hamster does .h dependencies automatically.

I agree with you; having been both a Make what-the-... and, nowadays a huge fan (to the extent that I get mocked at work about that) of it. It does rule, and I'm suggesting it to use outside of the building processes as well. Any dependencies, that's Make.

To the point? I'd like to take part if someone wants to start a "Lua macros for make" project. It'd basically be a set of Makefiles (for inclusion) that define usable features, using Lua. The use would be to come along without sed, awk, grep and other such Unix candies, allowing the Make+Lua+macros approach to run on Windows (ehem!) based machines as well.

I think LuaRocks will need this; and I'm going to be there to help build it. But the scope of usability would be wider.

-asko


Sam Roberts kirjoitti 16.10.2006 kello 21.26:

On Fri, Oct 13, 2006 at 06:44:58PM -0700, Wesley Smith wrote:
I can't tell you how much I agree you here.  Everytime I've tried to
use make to build a project of any size that uses subdirectories, it
has been a nightmare of looking at GNU's make documentation and
wondering who on earth made such an esoteric beast.  I wonder if the

make doesn't care what directory your files are in, you haven't figured
out how to use the tool yet if that is causing you trouble.

People have trouble with make because they attempt to use it as an
imperative language. Its not, its a rules-based language (akin to logic
languages like Prolog) wherein you state the conditions that must hold
for a particular goal ("target") to be satisfied. I think its the only
language of that type that is commonly used.

The other thing that people don't get about make is its a unix tool. It
does ONE thing well, evaluating dependency rules to determine how to
achieve goals. The rules themselves are usually built statically, in a
language other than make, i.e., you have to mix make with other tools
for a complete build system. In particular, dependency rules should be
built by a tool that knows as much as possible about C code... like
a C compiler:

	http://make.paulandlesley.org/autodep.html

Cheers,
Sam