Debian Codegraph @

Makefile

raw
1 VIRTUALENV = virtualenv --python=python3
2 PYTHON = $(VENV)/bin/python
3 VENV := $(shell echo $${VIRTUAL_ENV-.venv})
4 INSTALL_STAMP = $(VENV)/.install.stamp
5
6 all: init docs test
7
8 init: $(INSTALL_STAMP)
9 $(INSTALL_STAMP): $(PYTHON) setup.py
10 $(VENV)/bin/pip install -e .
11 $(VENV)/bin/pip install tox coverage Sphinx
12 touch $(INSTALL_STAMP)
13
14 virtualenv: $(PYTHON)
15 $(PYTHON):
16 $(VIRTUALENV) $(VENV)
17
18 test: init
19 $(VENV)/bin/coverage erase
20 $(VENV)/bin/tox
21 $(VENV)/bin/coverage html
22
23 docs: documentation
24
25 documentation: init
26 $(PYTHON) setup.py build_sphinx
27
28 messages: init
29 $(PYTHON) translations.py make
30
31 compilemessages: init
32 $(PYTHON) translations.py compile
33
34 format:
35 isort model_utils tests setup.py