Jiffy 1.1.1
[couchdb-jiffy.git] / Makefile
index d573bb6b16bae5fc6cdfc121d9eade95f967242d..1ad82f4109bee7079b021c4046eedde0820e537d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,37 @@
+REBAR?=rebar3
+
 
 all: build
 
+
+clean:
+       $(REBAR) clean
+       rm -rf logs
+       rm -rf .eunit
+       rm -f test/*.beam
+
+
+distclean: clean
+       git clean -fxd
+
+
+build:
+       $(REBAR) compile
+
+
+eunit:
+       $(REBAR) eunit skip_deps=true
+
+
+check: build eunit
+
+
+release:
+       rebar3 hex publish
+
+
 %.beam: %.erl
        erlc -o test/ $<
 
-build: c_src/decoder.c
-       ./rebar compile
 
-check: test/etap.beam test/util.beam
-       prove test/*.t
+.PHONY: all clean distclean depends build etap eunit check