summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2015-09-12 00:34:45 +0200
committerJosé Valim <jose.valim@plataformatec.com.br>2015-09-12 00:34:45 +0200
commit031543eab89ac0faf035a51c24ea06f43cfbb8ec (patch)
tree84daca738dcdafa5dd7b4097dc9746f7479176c6 /Makefile
parenta585df60ed257202f160be9326f5fb89fb2286c1 (diff)
downloadelixir-031543eab89ac0faf035a51c24ea06f43cfbb8ec.tar.gz
Support logo when generating docs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 48713c6e8..418401691 100644
--- a/Makefile
+++ b/Makefile
@@ -128,8 +128,9 @@ clean_exbeam:
#==> Create Documentation
+LOGO_PATH = $(shell test -f ../docs/logo.png && echo "--logo ../docs/logo.png")
SOURCE_REF = $(shell head="$$(git rev-parse HEAD)" tag="$$(git tag --points-at $$head | tail -1)" ; echo "$${tag:-$$head}\c")
-COMPILE_DOCS = bin/elixir ../ex_doc/bin/ex_doc "$(1)" "$(VERSION)" "lib/$(2)/ebin" -m "$(3)" -u "https://github.com/elixir-lang/elixir" --source-ref "$(call SOURCE_REF)" -o doc/$(2) -p http://elixir-lang.org/docs.html
+COMPILE_DOCS = bin/elixir ../ex_doc/bin/ex_doc "$(1)" "$(VERSION)" "lib/$(2)/ebin" -m "$(3)" -u "https://github.com/elixir-lang/elixir" --source-ref "$(call SOURCE_REF)" $(call LOGO_PATH) -o doc/$(2) -p http://elixir-lang.org/docs.html
docs: compile ../ex_doc/bin/ex_doc docs_elixir docs_eex docs_mix docs_iex docs_ex_unit docs_logger