forked from erlcloud/erlcloud
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (38 loc) · 1.12 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
.PHONY: all get-deps clean compile run eunit check check-eunit doc
REBAR=$(shell which rebar || echo ./rebar)
# eventually this should be just ebin/*.beam, but there are a number
# of warnings in other files. Just check the clean files for now.
CHECK_FILES=\
ebin/erlcloud_ddb1.beam \
ebin/erlcloud_ddb.beam \
ebin/erlcloud_aws.beam
# Checks on the eunit files can help find bad specs and other issues,
# however there are some expected errors in some of the exception
# tests that should be ignored.
CHECK_EUNIT_FILES=\
$(CHECK_FILES) \
.eunit/erlcloud_ec2_tests.beam \
.eunit/erlcloud_ddb_tests.beam
all: get-deps compile
get-deps:
@$(REBAR) get-deps
clean:
@$(REBAR) clean
compile:
@$(REBAR) compile
run:
erl -pa deps/*/ebin -pa ./ebin
eunit: compile
@$(REBAR) eunit skip_deps=true
check: compile
dialyzer --verbose --no_check_plt --no_native --fullpath \
$(CHECK_FILES) \
-Wunmatched_returns \
-Werror_handling
check-eunit: eunit
dialyzer --verbose --no_check_plt --no_native --fullpath \
$(CHECK_EUNIT_FILES) \
-Wunmatched_returns \
-Werror_handling
doc:
@$(REBAR) doc skip_deps=true