-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
52 lines (38 loc) · 898 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
46
47
48
49
50
51
52
ERL ?= erl
ERLC ?= $(ERL)c
APP := sserl
REBAR := ./rebar3
REBAR_OPTS ?=
.PHONY: all
all: compile
.PHONY: rel prod-rel
rel:
$(REBAR) release
prod-rel:
$(REBAR) as prod tar
.PHONY: shell
shell:
$(REBAR) shell --name=$(APP)@127.0.0.1
# Use Rebar to get, update and compile dependencies
.PHONY: upgrade-deps compile-$(APP) compile
upgrade-deps: $(REBAR)
$(REBAR) $(REBAR_OPTS) upgrade
compile: $(REBAR)
$(REBAR) $(REBAR_OPTS) compile
# Generate documentation
.PHONY: docs edocs
docs:
@echo Building HTML documentation...
cd doc && $(MAKE) stubs && $(MAKE) html
@echo HTML documentation is now available in doc/_build/html/
edocs:
@echo Building reference edoc documentation...
bin/$(APP) generate-edoc
# Cleaning
.PHONY: clean
clean: $(REBAR)
rm -rf ebin
$(REBAR) $(REBAR_OPTS) clean
.PHONY: dist-clean
dist-clean: clean
$(REBAR) $(REBAR_OPTS) clean -a