Skip to content
Browse files

clean Makefile

  • Loading branch information...
1 parent 0b18a57 commit edc3542a3832121befa07789aaccf1f3d4d583df @benoitc benoitc committed
Showing with 9 additions and 16 deletions.
  1. +9 −14 Makefile
  2. +0 −2 src/couchbeam_doc.erl
View
23 Makefile
@@ -2,26 +2,22 @@ ERL ?= erl
ERLC ?= erlc
APP := couchbeam
-.PHONY: rel deps
+.PHONY: deps doc
-all: deps
+all: deps compile
+
+compile:
@./rebar compile
deps:
@./rebar get-deps
-rel: deps
- @./rebar compile generate
-
-relforce: deps
- @./rebar compile generate force=1
-
doc:
@mkdir -p doc/api
@$(ERL) -noshell -run edoc_run application '$(APP)' '"."' '[{preprocess, true},{includes, ["."]}, {dir, "./doc/api"}]'
-test: all
+test: compile
@$(ERLC) -o t/ t/etap.erl
@$(ERLC) -o t/ t/test_util.erl
prove t/*.t
@@ -35,10 +31,9 @@ clean:
@rm -f t/*.beam
@rm -rf doc
-relclean:
- rm -rf rel/couchbeam
-
-
-distclean: clean relclean
+distclean: clean
@./rebar delete-deps
+dialyzer: compile
+ @dialyzer -Wno_return -c ebin
+
View
2 src/couchbeam_doc.erl
@@ -103,8 +103,6 @@ extend([Prop|R], JsonObj)->
extend({Key, Value}, JsonObj) ->
set_value(Key, Value, JsonObj).
-
-
%% @private
set_value1([], _Key, _Value, Acc) ->
{lists:reverse(Acc)};

0 comments on commit edc3542

Please sign in to comment.
Something went wrong with that request. Please try again.