1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
PYTHON = python2.7
build: bin/buildout bin/django doc
bin/buildout: bootstrap.py distribute_setup.py
$(PYTHON) bootstrap.py --distribute --setup-source distribute_setup.py
bin/django bin/django-python bin/sphinx bin/test: \
bin/buildout buildout.cfg setup.py
bin/buildout
dev-db:
utilities/maasdb start ./db/ disposable
test: bin/test
bin/test
lint: sources = setup.py src templates utilities
lint:
@bin/flake8 $(sources) | \
(! fgrep -v "from maas.settings import *")
check: clean test
docs/api.rst: bin/django src/maasserver/api.py
bin/django gen_rst_api_doc > $@
doc: bin/sphinx docs/api.rst
bin/sphinx
clean:
find . -type f -name '*.py[co]' -print0 | xargs -r0 $(RM)
find . -type f -name '*~' -print0 | xargs -r0 $(RM)
distclean: clean
utilities/maasdb delete-cluster ./db/
$(RM) -r eggs develop-eggs
$(RM) -r bin build logs parts
$(RM) tags TAGS .installed.cfg
$(RM) *.egg *.egg-info
$(RM) docs/api.rst
$(RM) -r docs/_build/
run: bin/django dev-db
bin/django runserver 8000
harness: bin/django dev-db
bin/django shell
syncdb: bin/django dev-db
bin/django syncdb
.PHONY: \
build check clean dev-db distclean doc \
harness lint run syncdb test
|