Skip to content

Commit

Permalink
Use rebar and add a .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
David Reid committed Feb 24, 2011
1 parent 67bc2cf commit c0b9e7b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.eunit
/ebin
TEST-*.xml
15 changes: 9 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
REBAR=./rebar

code: clean
erl -noshell -pa ebin -s make all -s erlang halt
.PHONY: all clean test

all:
@$(REBAR) compile

run: code
werl -pa ebin &

clean:
rm -fv ebin/*.beam erl_crash.dump
@$(REBAR) clean

test:
@$(REBAR) eunit
Binary file added rebar
Binary file not shown.
3 changes: 3 additions & 0 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{cover_enabled, true}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.

0 comments on commit c0b9e7b

Please sign in to comment.