diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-08-06 19:22:52 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-08-07 11:18:33 +0900 |
commit | a71985b9defc28b469787393193fdbe5904cab96 (patch) | |
tree | 58fc0100761d144197e969db71ddc0fb8a80839d /Makefile | |
parent | 5fcb5d59efedd947cbfb7bb1c628ee51037fbab2 (diff) | |
download | pygerrit-a71985b9defc28b469787393193fdbe5904cab96.tar.gz |
Add generation of package documentation
Documentation is generated in html format into the docs folder.
The idea is that with further commits we can automatically generate
and package the documentation into a zip file that can be published
to the package index.
Change-Id: Ia5719bda59b6224fc05e2021e9054e29990ad22a
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 30 insertions, 1 deletions
@@ -20,10 +20,34 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. +PWD := $(shell pwd) + all: test test: clean unittests pyflakes pep8 pep257 pylint +docs: html + +html: sphinx + bash -c "\ + source ./pygerritenv/bin/activate && \ + export PYTHONPATH=$(PWD) && \ + cd docs && \ + make html && \ + cd $(PWD)" + +sphinx: docenvsetup + bash -c "\ + source ./pygerritenv/bin/activate && \ + sphinx-apidoc \ + -V \"$(TAG)\" \ + -R \"$(TAG)\" \ + -H \"Pygerrit\" \ + -A \"Sony Mobile Communications\" \ + --full \ + --force \ + -o docs pygerrit" + pylint: testenvsetup bash -c "\ source ./pygerritenv/bin/activate && \ @@ -55,6 +79,11 @@ testenvsetup: envsetup source ./pygerritenv/bin/activate && \ pip install --upgrade -r test_requirements.txt" +docenvsetup: envsetup + bash -c "\ + source ./pygerritenv/bin/activate && \ + pip install --upgrade -r doc_requirements.txt" + envsetup: envinit bash -c "\ source ./pygerritenv/bin/activate && \ @@ -65,4 +94,4 @@ envinit: clean: @find . -type f -name "*.pyc" -exec rm -f {} \; - @rm -rf pygerritenv pygerrit.egg-info build dist + @rm -rf pygerritenv pygerrit.egg-info build dist docs |