Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the standard build tool in Erlang?

I am very new to Erlang programming language. Is there a standard build tool in Erlang?

I have googled out these, not sure which one I should use.

  • Erlang Make http://www.erlang.org/doc/man/make.html

  • Rebar

  • Erlang.mk

like image 653
redfrontedr Avatar asked May 11 '15 14:05

redfrontedr


People also ask

What is meant by build tool?

What Does Build Tool Mean? Build tools are programs that automate the creation of executable applications from source code. Building incorporates compiling, linking and packaging the code into a usable or executable form. In small projects, developers will often manually invoke the build process.

What is rebar in Erlang?

rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases. rebar is a self-contained Erlang script, so it's easy to distribute or even embed directly in a project.


2 Answers

Rebar is gradually being replaced by rebar3, which provides more deterministic builds and conflict resolution, packages (integrating with hex.pm), and so on.

As one of the current rebar and rebar3 maintainers, I'd recommend rebar3.

like image 189
I GIVE TERRIBLE ADVICE Avatar answered Oct 02 '22 21:10

I GIVE TERRIBLE ADVICE


Yes, we can use default make tool for build yours code (http://www.erlang.org/doc/man/make.html). But it is not so convenient.

Most projects use rebar. Because it is easy and convenient.

And yes, we can use Erlang.mk, it also provides the necessary functionality. It's big Makefile.

I recommend you start with rebar.

like image 38
saa Avatar answered Oct 02 '22 19:10

saa