Docs
[osm/N2VC.git] / Makefile
index 04bc522..eaf18a6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,9 +17,12 @@ test:
        tox
 
 docs: .tox
-       $(PIP) list | grep Sphinx || $(PIP) install -U sphinx
-       rm -rf docs/api/*
+       $(PIP) install -r docs/requirements.txt
+       rm -rf docs/api/* docs/_build/
        $(BIN)/sphinx-apidoc -o docs/api/ juju/
        $(BIN)/sphinx-build -b html docs/  docs/_build/
 
-.PHONY: clean client test docs
+upload: docs
+       $(PY) setup.py sdist upload upload_docs --upload-dir=docs/_build
+
+.PHONY: clean client test docs upload