-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (49 loc) · 1.8 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
59
60
61
62
63
64
65
66
67
68
69
# -*- mode: Makefile; fill-column: 80; comment-column: 75; -*-
# =============================================================================
# Use approved HTTPS proxy for Github access
# =============================================================================
export HTTPS_PROXY=www-proxy.wetafx.co.nz:3128
export GIT_SSL_NO_VERIFY=true
# =============================================================================
# Set pythonpath so Eunit tests complete
# =============================================================================
env PYTHONPATH="priv"
# =============================================================================
# Verify that the programs we need to run are installed on this system
# =============================================================================
ERL = $(shell which erl)
ifeq ($(ERL),)
$(error "Erlang not available on this system")
endif
REBAR=$(shell which rebar3)
ifeq ($(REBAR),)
$(error "Rebar not available on this system")
endif
ERLDOCS=$(shell which erldocs)
.PHONY: all deps update-deps compile docs erldocs dialyzer typer ct clean clean-doc distclean
# =============================================================================
# Rules to build the system
# =============================================================================
all: compile dialyzer eunit
update-deps:
$(REBAR) upgrade
$(REBAR) compile
compile:
$(REBAR) compile
docs:
$(REBAR) edoc
dialyzer:
$(REBAR) dialyzer
eunit:
$(REBAR) eunit
release: compile dialyzer eunit docs
$(REBAR) as prod release
# =============================================================================
# Clean
# =============================================================================
clean:
$(REBAR) clean
distclean: clean
$(REBAR) clean --all
rm -vf $(CURDIR)/rebar.lock
rm -rvf $(CURDIR)/_build