~ubuntuone-pqm-team/talisker/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Simon Davy
  • Date: 2016-07-22 14:28:55 UTC
  • Revision ID: simon.davy@canonical.com-20160722142855-ro39y3dfak3s3bn3
Massive documentation update, leading to some more test coverage and refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
VENV_PATH = env
15
15
VENV = $(VENV_PATH)/ready
16
16
BIN = $(VENV_PATH)/bin
17
 
PYTHON ?= python3
 
17
PY3 = $(shell which python3)
 
18
PYTHON ?= $(shell readlink -f $(PY3))
18
19
 
19
20
default: test
20
21
.ONESHELL:
21
22
.SUFFIXES:
22
23
 
23
24
$(VENV):
24
 
        virtualenv $(VENV_PATH) -p /usr/bin/$(PYTHON)
 
25
        virtualenv $(VENV_PATH) -p $(PYTHON)
25
26
        $(BIN)/pip install -U pip
26
27
        $(BIN)/pip install -e .
27
28
        $(BIN)/pip install -r devel_requirements.txt
35
36
        $(BIN)/py.test
36
37
 
37
38
run:
38
 
        $(BIN)/python tests/server.py
 
39
        $(BIN)/talisker tests.server:application --bind 0.0.0.0:8081
39
40
 
40
41
test: _test lint
41
42
 
52
53
        $(BROWSER) htmlcov/index.html
53
54
 
54
55
docs: $(VENV)
55
 
        rm -f docs/talisker.rst
56
 
        rm -f docs/modules.rst
 
56
        @rm -f docs/talisker.rst
 
57
        @rm -f docs/modules.rst
57
58
        $(BIN)/sphinx-apidoc -o docs/ talisker
58
 
        $(MAKE) -C docs clean
59
 
        $(MAKE) -C docs html
 
59
        $(MAKE) -C docs clean SPHINXBUILD=../$(BIN)/sphinx-build
 
60
        $(MAKE) -C docs html SPHINXBUILD=../$(BIN)/sphinx-build
 
61
 
 
62
view:
60
63
        $(BROWSER) docs/_build/html/index.html
61
64
 
62
65
clean: clean-build clean-pyc clean-test