forked from jlouis/graphql-erlang-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 866 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (28 loc) · 866 Bytes
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
REBAR=rebar3
.PHONY: compile shell-schema release dialyzer publish documentation
compile:
$(REBAR) compile
## Rebar3 advertises that its shell command boots the system with a
## changed path:
##
## Start a shell with project and deps preloaded similar to
## 'erl -pa ebin -pa deps/*/ebin'.
##
## It doesn't. It also starts the applications. We don't want
## the applications started, hence this little blurb:
shell-schema:
erl -pa `$(REBAR) path` -name sw@127.0.0.1
release:
$(REBAR) release
dialyzer:
$(REBAR) dialyzer
DOC_SOURCES = $(wildcard doc/*.asciidoc)
IMAGE_SOURCES = $(wildcard doc/images/*)
doc/book.html: $(DOC_SOURCES)
asciidoctor doc/book.asciidoc
index.html: doc/book.html
cp doc/book.html index.html
documentation: doc/book.html
publish: index.html
touch doc/book.asciidoc # Bump the last-updated-label
cp -r $(IMAGE_SOURCES) images