forked from chef-boneyard/chef_objects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 loc) · 824 Bytes
/
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
DEPS=$(CURDIR)/deps
DIALYZER_DEPS = deps/depsolver/ebin \
deps/ej/ebin \
deps/ejson/ebin \
deps/ibrowse/ebin \
deps/mini_s3/ebin \
deps/mochiweb/ebin
DEPS_PLT = chef_objects.plt
.PHONY: doc
all: compile eunit dialyzer
clean:
@rebar skip_deps=true clean
allclean:
@rebar clean
distclean:
@rebar skip_deps=true clean
@rm -rf deps $(DEPS_PLT)
compile: $(DEPS)
@rebar compile
doc:
@rebar doc skip_deps=true
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)
$(DEPS):
@rebar get-deps
eunit: compile
@rebar skip_deps=true eunit
test: eunit
tags:
find src deps -name "*.[he]rl" -print | etags -