building applications stored in an "apps" subfolder

Andrew Tunnell-Jones andrew at tj.id.au
Fri Oct 8 07:11:03 EDT 2010


On 08/10/2010, at 9:42 PM, OJ Reeves wrote:

> I have two questions:
> 
> Is it a good idea to move individual applications into their own folder inside an apps subfolder like I have shown above? Is that what Erlang projects do in general? Should I have left it as I had it before where the top level application because the compile entry-point for the entire system?
I've seen a couple of projects built in that style. Whether it makes sense is a mix pragmatism and personal preference. In my own project I've broken out generic apps into deps and kept apps that are only useful in the context of the project in the apps folder.
> If this is the right approach, how do I get rebar to build each of the applications in the "apps" folder individually as if I had called make from their respective directories?
Adding the following to your rebar.config should do the job:

{sub_dirs, ["apps/app1", "apps/apps2"]}. 

Cheers,

— Andrew
http://andrew.tj.id.au/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/rebar_lists.basho.com/attachments/20101008/59bd0fcd/attachment.html>


More information about the rebar mailing list