summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2015-09-01 19:47:40 +0200
committerJosé Valim <jose.valim@plataformatec.com.br>2015-09-01 19:47:40 +0200
commitfb78a396e87510461022dc31ca4a9da41cc38b27 (patch)
tree5e755d4cfe23a69e79d4ff71c368508031fd9b9e /Makefile
parent5fe54d34efcdae04a66c637d207eb78ccf4959b7 (diff)
downloadelixir-fb78a396e87510461022dc31ca4a9da41cc38b27.tar.gz
Include docs zip in the publish process
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 11f48d969..48713c6e8 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ INSTALL_DIR = $(INSTALL) -m755 -d
INSTALL_DATA = $(INSTALL) -m644
INSTALL_PROGRAM = $(INSTALL) -m755
-.PHONY: install install_man compile erlang elixir build_plt clean_plt dialyze test clean clean_man docs release_docs release_precompiled check_erlang_release
+.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
.NOTPARALLEL: compile
#==> Functions
@@ -167,16 +167,25 @@ docs_logger: compile ../ex_doc/bin/ex_doc
@ echo "ex_doc is not found in ../ex_doc as expected. See README for more information."
@ false
-#==> Release tasks
+#==> Zips
-release_precompiled: build_man compile
+Docs.zip: docs
+ rm -rf Docs-v$(VERSION).zip
+ zip -9 -r Docs-v$(VERSION).zip doc
+ @ echo "Docs file created $(CURDIR)/Docs-v$(VERSION).zip"
+
+Precompiled.zip: build_man compile
rm -rf Precompiled-v$(VERSION).zip
zip -9 -r Precompiled-v$(VERSION).zip bin CHANGELOG.md LEGAL lib/*/ebin LICENSE man README.md VERSION
@ echo "Precompiled file created $(CURDIR)/Precompiled-v$(VERSION).zip"
-release_docs: docs
+#==> Publish
+
+publish_zips: Precompiled.zip Docs.zip
+
+publish_docs: docs
rm -rf ../docs/$(DOCS)/*/
- mv doc/* ../docs/$(DOCS)
+ cp -R doc/* ../docs/$(DOCS)
# This task requires aws-cli to be installed and set up for access to s3.hex.pm
# See: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html