[erlang-questions] Emakefile confusion

Ludovic Coquelle lcoquelle@REDACTED
Fri Jul 27 09:17:37 CEST 2007


I'm not sure what the problem ('o' vs 'outdir', or the inital path './'),
but the following line works as expected on my machine:
{"*", [{outdir, "./beam/"}]}.
br

On 7/27/07, Vesa Kaihlavirta <vpkaihla@REDACTED> wrote:
>
>
> 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
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070727/edb8e820/attachment.htm>


More information about the erlang-questions mailing list