【转载】stackoverflow 上关于 rebar 的讨论

简介:

  rebar-include-ext-libs-error    

Your config file worked for me so I'd suggest doing the following:  
  • make sure you have git installed
  • put the most recent build of rebar in your project directory
  • use a Makefile like the one I described here
  • delete your existing deps directory
  • run make
If you want to use rebar directly instead of using make you can do:  
?
1
2
$ . /rebar get-deps
$ . /rebar compile


  erlang-and-toolchains    

Editor: you can use whatever you want. I used emacs for my first year of erlang, but I'm currently using gedit.  
Version Control: I like git. It seems that most of the erlang community agrees (most projects are hosted on github).  
Workflow: I'd recommend getting familiar with rebar.  

Here is an example of a rebar-flavored Makefile:  
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
REBAR := . /rebar
 
.PHONY: all deps doc test clean release
 
all: deps
     $(REBAR) compile
 
deps:
     $(REBAR) get-deps
 
doc:
     $(REBAR) doc skip_deps= true
 
test :
     $(REBAR) eunit skip_deps= true
 
clean:
     $(REBAR) clean
 
release: all test
     dialyzer --src src/*.erl deps/* /src/ *.erl
Here are some basic pointers:  
  • Put your unit tests in the same modules as the code they are testing. See the rebar wiki for details.
  • Add {cover_enabled, true} to your rebar.config file. Every time you run make test you get a coverage report in HTML!
  • Add your project's dependencies to your rebar.config and you can fetch and build them when you run make deps.
  • Make sure to comment your code with edoc. If you do, rebar can build all of your docs when your run make doc.
目录
打赏
0
0
0
0
34
分享
相关文章
GitHub爆出初级程序员到架构师【程序员能力模型】星标150k
一个优秀的程序员应该有自己的职业规划,并且能够精准的定位自己所处的位置。一般来说,每一个位置都会有明确的划分,并且也应该能够得到相应的岗位待遇。而我们下面就是以北上深(一线城市)的学员做为调研对象,归纳总结了一个程序员从初级程序员到架构师的能力模型。
大厂刷题实录:GitHub上获79w+ star,谷歌师兄的算法刷题笔记火了
最近一位谷歌大牛当时为了应对校招刷了几百道算法题,整理的LeetCode刷题笔记火了! 总结了他对校招算法刷题的心得+经验,整理出了这份在GitHub上火爆的LeetCode刷题笔记
大厂刷题实录:GitHub上获79w+ star,谷歌师兄开源的刷题笔记火了
最近一位谷歌大牛当时为了应对校招刷了几百道算法题,整理的LeetCode刷题笔记火了! 总结了他对校招算法刷题的心得+经验,整理出了这份在GitHub上火爆的LeetCode刷题笔记
提升代码质量的几点小技巧 | 开发者社区精选文章合集(三十七)
软件研发过程中如何让工作变得更简单高效?来看这些提升代码质量的小技巧!
提升代码质量的几点小技巧 | 开发者社区精选文章合集(三十七)
Stackoverflow 高赞答案,为什么牛逼的程序员都不用 “ ! = null ' 做判空?
Stackoverflow 高赞答案,为什么牛逼的程序员都不用 “ ! = null ' 做判空?
127 0
开源项目推荐:libunibreak,现代C++实战30讲作者,吴咏炜
开源项目推荐:libunibreak,现代C++实战30讲作者,吴咏炜
687 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等