Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Replace make with Rake (trottercashion.com)
11 points by trotter_cashion on Oct 31, 2010 | hide | past | favorite | 6 comments



For Erlang specifically, you should probably use rebar (http://github.com/basho/rebar). It is pretty much the best thing ever.

A common pattern lately is to use rebar with a very minimal makefile that just makes things like "make" and "make test" do the equivalent rebar actions so that people unfamiliar with it don't even notice.


Rebar definitely looks pretty cool. Is there any documentation for it other than this video (http://vimeo.com/8311407) though?


There is no real documentation yet, which is unfortunate. "rebar -c" is pretty helpful for what commands it has, and most of the layout conventions are not rebar's, but OTP's (those are documented here: http://www.erlang.org/doc/design_principles/applications.htm...). A rebar.config.sample file is provided in the GitHub repo which lists every configuration option. The mailing list and its archives are also pretty useful if you get stuck.


For Erlang and many other languages, plain Rake is good. For Java and some JVM based languages buildr ( http://buildr.apache.org/ ) provides a nice abstraction on top of Rake and also support for Maven repositories.


As we've started to name other alternatives to make: waf[1]

[1] http://code.google.com/p/waf/


This is a good article about fixing dumb makefiles in Joe's book, but please don't use Rake with any actual Erlang projects. Rebar does everything you want and probably more.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: