rebar3 的使用

时间秒杀一切 提交于 2020-08-17 16:41:34

安装

$ git clone https://github.com/erlang/rebar3.git
$ cd rebar3
$ ./bootstrap
$ ./rebar3 local install
===> Extracting rebar3 libs to ~/.cache/rebar3/lib...
===> Writing rebar3 run script ~/.cache/rebar3/bin/rebar3...
===> Add to $PATH for use: export PATH=$PATH:~/.cache/rebar3/bin

使用

创建

$ rebar3 new
app (custom): Complete OTP Application structure. 
cmake (custom): Standalone Makefile for building C/C++ in c_src
escript (custom): Complete escriptized application structure
lib (custom): Complete OTP Library application (no processes) structure
plugin (custom): Rebar3 plugin project structure
release (custom): OTP Release structure for executable programs 

编译

rebar3 compile

发布

rebar3 release

参考

https://github.com/erlang/rebar3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!