11REBAR ?= "$(CURDIR ) /rebar"
22PREFIX ?= /usr/local
33SHARE_PREFIX ?= $(PREFIX ) /share
4- DOCS := master
5- CANONICAL := master
4+ CANONICAL := master/
65ELIXIRC := bin/elixirc --verbose --ignore-module-conflict
76ERLC := erlc -I lib/elixir/include
87ERL := erl -I lib/elixir/include -noshell -pa lib/elixir/ebin
@@ -17,7 +16,7 @@ INSTALL_PROGRAM = $(INSTALL) -m755
1716GIT_REVISION = $(strip $(shell git rev-parse HEAD 2> /dev/null ) )
1817GIT_TAG = $(strip $(shell head="$(call GIT_REVISION) "; git tag --points-at $$head 2> /dev/null | tail -1) )
1918
20- .PHONY : install compile erlang elixir build_plt clean_plt dialyze test clean install_man clean_man docs Docs.zip Precompiled.zip publish_zips publish_docs publish_mix
19+ .PHONY : install compile erlang elixir build_plt clean_plt dialyze test clean install_man clean_man docs Docs.zip Precompiled.zip zips
2120.NOTPARALLEL : compile
2221
2322# ==> Functions
@@ -133,7 +132,7 @@ clean_exbeam:
133132LOGO_PATH = $(shell test -f ../docs/logo.png && echo "--logo ../docs/logo.png")
134133SOURCE_REF = $(shell tag="$(call GIT_TAG) " revision="$(call GIT_REVISION) "; echo "$${tag:-$$revision}\c")
135134DOCS_FORMAT = html
136- 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 ) -n http ://elixir-lang.org/docs/ $( CANONICAL ) /$(2 ) / -p http://elixir-lang.org/docs.html -f "$(DOCS_FORMAT ) " $(4 )
135+ 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 ) -n https ://hexdocs.pm/ $( 2 ) /$(CANONICAL ) -p http://elixir-lang.org/docs.html -f "$(DOCS_FORMAT ) " $(4 )
137136
138137docs : compile ../ex_doc/bin/ex_doc docs_elixir docs_eex docs_mix docs_iex docs_ex_unit docs_logger
139138
@@ -183,13 +182,7 @@ Precompiled.zip: build_man compile
183182 zip -9 -r Precompiled-v$(VERSION ) .zip bin CHANGELOG.md lib/* /ebin LICENSE man NOTICE README.md VERSION
184183 @ echo " Precompiled file created $( CURDIR) /Precompiled-v$( VERSION) .zip"
185184
186- # ==> Publish
187-
188- publish_zips : Precompiled.zip Docs.zip
189-
190- publish_docs : docs
191- rm -rf ../docs/$(DOCS ) /* /
192- cp -R doc/* ../docs/$(DOCS )
185+ zips : Precompiled.zip Docs.zip
193186
194187# ==> Tests tasks
195188
0 commit comments