[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
5
# erlc -o beam/ *erl
# ls beam/ | wc -l
5
# 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]
[kernel-poll:false]

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

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



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

--vk
-------------- 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