make:all() and load...

Siri Hansen (EAB) siri@REDACTED
Tue Jul 22 11:44:55 CEST 2003


'load' is not a compiler option, it is a make option. Try instead

./ebin/Emakefile:
{'../src/test',[]}.

and do make:all([load]).

/siri


WILLIAMS Dominic wrote:
> Hello,
> 
> I can't get make:all() to reload recompiled files.
> 
> Here is a simplified example:
> 
> ./ebin/Emakefile:
> {'../src/test',[load]}.
> 
> ./src/test.erl:
> -module(test).
> -export([run/0]).
> run() ->
> 	hello.
> 
> Erlang (BEAM) emulator version 5.2.3.3 [threads:0]
> Eshell V5.2.3.3  (abort with ^G)
> 1> cd("c:/erlang/bug/ebin").
> c:/erlang/bug/ebin
> ok
> 2> make:all().
> Recompile: ../src/test
> up_to_date
> 3> test:run().
> hello
> 
> Now modify ./src/test.erl:
> -module(test).
> -export([run/0]).
> run() ->
> 	goodbye.
> 
> 4> make:all().
> Recompile: ../src/test
> up_to_date
> 5> test:run().
> hello
> 6> l(test).
> {module,test}
> 7> test:run().
> goodbye
> 8> 
> 
> Why doesn't make:all() load the recompiled module?
> Am I doing something wrong?
> 
> Regards,
> 
> Dominic Williams.



More information about the erlang-questions mailing list