I'm trying to generate an Erlang Cowboy release by scrupulously following (e.g. cut-and-paste) the Getting Started instructions at:
https://github.com/extend/cowboy/blob/master/guide/getting_started.md
All goes well until I create Makefile
and execute$ make
. The compile process terminates as follows:
...
make[1]: Leaving directory `/home/lloyd/hello_erlang/deps/cowboy'
ERLC hello_erlang_app.erl hello_handler.erl hello_erlang_sup.erl
compile: warnings being treated as errors
src/hello_handler.erl:3: behaviour cowboy_http_handler undefined
make: *** [ebin/hello_erlang.app] Error 1
I've triple checked my code but can't see anything I've missed.
So, is this my error? Or a bug in the Getting Started instructions or in Cowboy itself? If it's my mistake, how can I fix?
I've posed this question to essen@ninenines.eu
, but so far no response.