~corey.bryant/charm-helpers/os-release-cache

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Tim Van Steenburgh
  • Date: 2014-06-09 14:56:35 UTC
  • mto: This revision was merged to the branch mainline in revision 173.
  • Revision ID: tim.van.steenburgh@canonical.com-20140609145635-93wfxbsk5bz9pjy3
Add docs skeleton

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
        @echo "make deb - Create debian package"
10
10
        @echo "make clean"
11
11
        @echo "make userinstall - Install locally"
 
12
        @echo "make docs - Build html documentation"
 
13
        @echo "make release - Build and upload package and docs to PyPI"
12
14
 
13
15
sdeb: source
14
16
        scripts/build source
43
45
        @echo Checking for Python syntax...
44
46
        @flake8 --ignore=E123,E501 $(PROJECT) $(TESTS) && echo OK
45
47
 
46
 
build: test lint
 
48
docs:
 
49
        - [ -z "`dpkg -l | grep python-sphinx`" ] && sudo apt-get install python-sphinx -y
 
50
        - [ -z "`dpkg -l | grep python-pip`" ] && sudo apt-get install python-pip -y
 
51
        - [ -z "`pip list | grep -i sphinx-pypi-upload`" ] && sudo pip install sphinx-pypi-upload
 
52
        cd docs && make html && cd -
 
53
.PHONY: docs
 
54
 
 
55
release: docs
 
56
        $(PYTHON) setup.py sdist upload upload_sphinx
 
57
 
 
58
build: test lint docs