Multi OTP app project

Garrett Smith g at rre.tt
Thu Jun 23 17:31:38 EDT 2011


I'm evaluating rebar to replace a makefile based build system.

I typically work with projects that have this structure:

./lib/app_1/src
./lib/app_1/ebin
./lib/app_1/priv
./lib/app_1/include
./lib/app_2/src
./lib/app_2/ebin
./lib/app_2/priv
./lib/app_2/include
./rel/R14B/some_release_1.rel
./rel/R14B/some_release_2.rel

There's an assumption that every OTP app under "lib" is available as
if it were installed -- e.g. include_lib("app_1/include/yo.hrl")
works.

I do this by setting ERL_LIBS=lib for running and compiling.

For the most part, this project structure resembles OTP itself.

Can someone help me understand how rebar could be used to manage this
type of project?

Garrett



More information about the rebar mailing list