I use motibel-inspired style. To see an example, get your copy of mochiweb:
svn checkout http://mochiweb.googlecode.com/svn/trunk/ mochiweb
and use
path/to/mochiweb/scripts/new_mochiweb.erl new_project_name
create a sample structure project (feel free to delete everything inside src afterwards and use it for your project).
It looks like this:
/
/ebin/
/deps/
/src/
/include/
/support/
/support/include.mk
Makefile
start.sh
- ebin contains * .beam files
- src contains ***. erl files and local * .hrl files
- include contains global * .hrl files
- deps contains symlinks to dependency root directories
Makefile and include.mk takes care of including the appropriate paths when building the project.
start.sh takes care of including the appropriate paths when starting the project.
, symlinks deps, , . , rsync .
:
~/code/erlang/libs/*/
~/code/category/project/*/
~/code/category/project/*/deps/*/
~/code/erlang/libs/ .