Permalink
Browse files

Add makefile and improve gitignore

  • Loading branch information...
1 parent 7e96898 commit de137f1a26931d6062f5ae2e130d60c698f61e87 @sheyll committed Dec 11, 2012
Showing with 25 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +22 −0 Makefile
View
@@ -1,2 +1,5 @@
.project
target/
+ebin/
+.eunit/
+doc/
View
@@ -0,0 +1,22 @@
+REBAR="./rebar"
+SHELL = /bin/sh
+
+.DEFAULT_GOAL := compile
+
+.PHONY = compile clean test doc
+
+doc:
+ $(REBAR) doc skip_deps=true
+# mv doc/*.html .
+
+
+compile:
+ $(REBAR) get-deps
+ $(REBAR) compile
+
+test:
+ $(REBAR) skip_deps=true eunit
+
+clean:
+ $(REBAR) clean
+ rm -rf doc

0 comments on commit de137f1

Please sign in to comment.