[erlang-questions] Use of makefiles

Chandru chandrashekhar.mullaparthi@REDACTED
Fri Feb 29 14:51:50 CET 2008


Hi,

On 29/02/2008, Bengt Kleberg <bengt.kleberg@REDACTED> wrote:
> Greetings,
>
>  Would not erlang be a good choice to harness the power of multi core
>  chips?

Sure!

>  There is a make module in erlang. Does it do parallel make?

I don't think it does. And I don't think it is as simple as launching
a new process to compile each erl file. Dependency checking has to be
done to make sure that they are compiled in the right order.
Specifying dependencies in make is very well defined. I don't think
erlang make supports this (not that I've looked for it). Some
dependencies which have to be checked are:
  * Compile .asn files before compiling rest of sources
  * Compile SNMP MIBs in a certain order
 * Depending on when you create ebin folders in your application, you
have to figure dependencies introduced by -include_lib statements in
the source. We don't store ebin folders in our repository - they are
created at build time.

I'd love to have a complete 'make' like system in erlang only because
as Matthias very eloquently put it, 'make' syntax is 'batshit crazy'
and all my attempts at mastering it were short lived.

cheers
Chandru



More information about the erlang-questions mailing list