esl / erlang_ale

Erlang Actor Library for Embedded -- An embedded framework from Erlang Solutions
Apache License 2.0
207 stars 65 forks source link

Switch to rebar? #13

Closed runcom closed 10 years ago

runcom commented 10 years ago

Just wondering if there are any plans to switch from Makefile to rebar

lehoff commented 10 years ago

No. We tried to use rebar, but it was simply too difficult to get it to work well with all the C code. Make and erlang.mk works perfectly and provides the same things as rebar when it comes to the needs of compiling erlang_ale.

And you can include erlang_ale as a dependency from a rebar project, so it is not going to disrupt anything for you.

runcom commented 10 years ago

Including erlang_ale in a rebar project need a custom script to make it after defining it as a raw dependency

lehoff commented 10 years ago

Hmmm, I haven't tried including erlang_ale from a rebar project, but I just did an experiment with Chronos (git@github.com:lehoff/chronos.git) which uses erlang.mk and placed it in a project using rebar.

Rebar compiled Chronos based on this rebar.config:

{deps, [{chronos, ".*", {git, "git@github.com:lehoff/chronos.git", {branch, "master"}}}]}.

I would be surprised if this doesn't work for erlang_ale.