当前位置: 首页 > 工具软件 > Rebar > 使用案例 >

rebar3 的使用

归鸿朗
2023-12-01

安装

$ 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

 类似资料: