make:all() and load...

WILLIAMS Dominic D.WILLIAMS@REDACTED
Tue Jul 22 11:34:38 CEST 2003


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