[erlang-questions] Emakefile confusion

Vesa Kaihlavirta <>
Fri Jul 27 06:59:55 CEST 2007

Emake is not acting as I think it should be.

This works as expected.

# ls *.erl | wc -l
# erlc -o beam/ *erl
# ls beam/ | wc -l
# rm beam/*

But if I try the same with emake, the beams end up in the same directory:

# cat Emakefile
{'*', [{o, "beam/"}]}.
#  erl
Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [hipe]

Eshell V5.5.5  (abort with ^G)
1> make:all().
Recompile: ...
Recompile: ...
2> q().

# ls -l beam/
# ls *.beam | wc -l

Am I using it wrong or is it broken? erl -man make suggests that giving the
'o' parameter should work like that.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070726/4a5fbfc0/attachment.html>

More information about the erlang-questions mailing list