forked from chef-boneyard/chef_wm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
59 lines (45 loc) · 1.47 KB
/
Makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
DEPS = $(CURDIR)/deps
DIALYZER_DEPS = deps/chef_authn/ebin \
deps/chef_db/ebin \
deps/chef_index/ebin \
deps/chef_objects/ebin \
deps/ej/ebin \
deps/fast_log/ebin \
deps/mini_s3/ebin \
deps/pooler/ebin \
deps/sqerl/ebin \
deps/stats_hero/ebin \
deps/ibrowse/ebin \
deps/webmachine/ebin \
deps/jiffy/ebin \
deps/bcrypt/ebin \
deps/chef_certgen/ebin
DEPS_PLT = chef_wm.plt
all: compile eunit dialyzer
clean:
@rebar clean
compile: $(DEPS)
@rebar compile
$(DEPS):
@rebar get-deps
distclean:
@rm -rf deps $(DEPS_PLT)
@rebar skip_deps=true clean
eunit:
@rebar skip_deps=true eunit
test: eunit
dialyzer: $(DEPS_PLT)
@dialyzer -Wrace_conditions -Wunderspecs --plts ~/.dialyzer_plt $(DEPS_PLT) -r ebin
$(DEPS_PLT):
@dialyzer --build_plt $(DIALYZER_DEPS) --output_plt $(DEPS_PLT)
doc:
@rebar doc skip_deps=true
.PHONY: doc test eunit distclean compile clean all dialyzer
shell: compile
# You often want *rebuilt* rebar tests to be available to the
# # shell you have to call eunit (to get the tests
# # rebuilt). However, eunit runs the tests, which probably
# # fails (thats probably why You want them in the shell). This
# # runs eunit but tells make to ignore the result.
- @rebar skip_deps=true eunit
@erl -pa $(CURDIR)/.eunit -pa $(CURDIR)/ebin -pa $(CURDIR)/*/ebin