选定mochiweb作为erlang的入门学习项目,细节研究了一下mochiweb。是用rebar进行项目管理。所以今天学习erlang的项目构建,makefile + rebar
(在ubuntu 11.10上)
首先下载rebar:在 https://github.com/basho/rebar
创建项目:
$mkdir dptest
$cd dptest
$wget http://cloud.github.com/downloads/basho/rebar/rebar && chmod u+x rebar
$./rebar create-app appid=dptest
然后就可以看到生成的代码,开始写Makefile