My test project is structured like this:
./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 erl -make in the project directory ( . ), I get the following output:
Recompile: source / test_behaviour
Recompile: source / test
source / test.erl: 2: Warning: behavior test_behavior undefined
Why is erl printing this warning? It compiled test_behaviour.erl to test.erl , so I assume that it should find test_behaviour.beam in the binary folder.
source share