My test
project is structured this way:
./Emakefile:
{"source/*", [debug_info, {outdir, "binary"}]}.
./source/test.erl:
-module(test).
-behaviour(test_behaviour).
./source/test_behaviour.erl:
-module(test_behaviour).
-export([behaviour_info/1]).
behaviour_info(callbacks) -> [];
behaviour_info(_) -> undefined.
When I use the command erl -make
in the project directory (.
), I get the following output:
Recompile: source/test_behaviour Recompile: source/test source/test.erl:2: Warning: behaviour test_behaviour undefined
Why does erl
print this warning ? It compiled test_behaviour.erl
before test.erl
, so I guess it should be able to find test_behaviour.beam
in the binary
folder.