forked from smarkets/erlang-bcrypt
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 762 Bytes
/
Makefile
File metadata and controls
40 lines (29 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
REBAR := $(shell which rebar3 2>/dev/null || echo ./rebar3)
REBAR_URL := https://s3.amazonaws.com/rebar3/rebar3
.PHONY: clean compile test
all: compile
compile: $(REBAR)
$(REBAR) compile
xref: $(REBAR)
$(REBAR) as test xref
test: $(REBAR)
$(REBAR) as test eunit
$(REBAR) as test proper
dialyzer: $(REBAR)
$(REBAR) as test dialyzer
clean: $(REBAR)
$(REBAR) clean
./rebar3:
erl -noshell -s inets start -s ssl start \
-eval '{ok, saved_to_file} = httpc:request(get, {"$(REBAR_URL)", []}, [], [{stream, "./rebar3"}])' \
-s inets stop -s init stop
chmod +x ./rebar3
##
## Doc targets
##
edoc: $(REBAR)
$(REBAR) edoc
edoc_private: $(REBAR)
$(REBAR) as edoc_private edoc
exdoc: $(REBAR)
$(REBAR) ex_doc --logo doc/img/logo.png --output edoc