Permalink
Browse files

Makefile and rebar stuff

  • Loading branch information...
1 parent eadf198 commit 3ccf3588b3705482444f22acf2c7b7875ff86b25 @jhs jhs committed Mar 9, 2012
Showing with 32 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +27 −0 Makefile
  3. +4 −0 rebar.config
View
1 .gitignore
@@ -1 +1,2 @@
.*.swp
+/deps/
View
27 Makefile
@@ -0,0 +1,27 @@
+ERL ?= erl
+ERLC ?= erlc
+
+.PHONY: deps doc
+
+all: deps compile
+
+compile:
+ @./rebar compile
+
+deps:
+ @./rebar get-deps
+
+test: all
+ @$(ERLC) -o t/ t/etap.erl
+ prove t/*.t
+
+clean:
+ @./rebar clean
+ @rm -f t/*.beam
+
+distclean: clean
+ @./rebar delete-deps
+ @rm -rf deps
+
+dialyzer: compile
+ @dialyzer -Wno_return -c ebin
View
4 rebar.config
@@ -0,0 +1,4 @@
+{deps,
+ [ {ejson, ".*", {git,"http://github.com/iriscouch/ejson.git", "820ff172"}}
+ ]
+}.

0 comments on commit 3ccf358

Please sign in to comment.