erl -make always recompiling

Gunilla Arendt <>
Mon May 8 07:42:57 CEST 2006


When specifying a file name including the .erl extension in Emakefile,
make:all/0,1 looks for the object code in the wrong place.

This bug has been fixed in Erlang/OTP R11B.

Regards, Gunilla


Joel Reymont wrote:
> Folks,
> 
> Notice how the same files are recompiled twice. I don't do anything in 
> between.
> 
> What would be the reason for this behavior and how can I fix it?
> 
> bigdaddy:~/work/Erlang/jabberlang/trunk joelr$ erl -pa ebin -make
> Recompile: src/xmpp_callbacks.erl
> Recompile: src/xmpp_echo.erl
> Recompile: src/xmpp_echo_behaviour.erl
> Recompile: src/xmpp_echo_behaviour2.erl
> Recompile: src/xmpp_erlang_example.erl
> Recompile: src/xmpp_iq.erl
> bigdaddy:~/work/Erlang/jabberlang/trunk joelr$ erl -pa ebin -make
> Recompile: src/xmpp_callbacks.erl
> Recompile: src/xmpp_echo.erl
> Recompile: src/xmpp_echo_behaviour.erl
> Recompile: src/xmpp_echo_behaviour2.erl
> Recompile: src/xmpp_erlang_example.erl
> Recompile: src/xmpp_iq.erl
> 
> The Emakefile is below and the first two files are not recompiled.
> 
> {'src/gen_xmpp_client',          [{outdir, "ebin"},{i,"include"}]}.
> {'src/xmpp',                     [{outdir, "ebin"},{i,"include"}]}.
> {'src/xmpp_callbacks.erl',       [{outdir, "ebin"},{i,"include"}]}.
> {'src/xmpp_echo.erl',            [{outdir, "ebin"}]}.
> {'src/xmpp_echo_behaviour.erl',  [{outdir, "ebin"},{i,"include"}]}.
> {'src/xmpp_echo_behaviour2.erl', [{outdir, "ebin"},{i,"include"}]}.
> {'src/xmpp_erlang_example.erl',  [{outdir, "ebin"},{i,"include"}]}.
> {'src/xmpp_iq.erl',              [{outdir, "ebin"}]}.
> %{'error_logger_xmpp_h.erl',     [{outdir, "ebin"}]}.
> 
>     Thanks, Joel
> 
> -- 
> http://wagerlabs.com/
> 
> 
> 
> 
> 
> 




More information about the erlang-questions mailing list