~newell-jensen/maas/update-fix-1508741-1.9

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
PYTHON = python2.7

build: bin/buildout bin/django html-doc

bin/buildout: bootstrap.py
	$(PYTHON) bootstrap.py

bin/django bin/django-python bin/test: bin/buildout buildout.cfg setup.py
	bin/buildout

dev-db:
	bin/maasdb start ./db/ disposable

test: bin/test
	bin/test

lint:
	pyflakes src

check: clean test

api-doc: src/maasserver/api.py
	bin/django gen_rst_api_doc > docs/api.rst

html-doc: api-doc
	cd docs; make html; cd ..

clean:
	find . -type f -name '*.py[co]' -print0 | xargs -r0 $(RM)
	$(RM) bin/buildout bin/django bin/django-python bin/test

distclean: clean
	bin/maasdb delete-cluster ./db/
	$(RM) -r eggs develop-eggs
	$(RM) -r build logs parts
	$(RM) tags TAGS .installed.cfg
	$(RM) *.egg *.egg-info

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 harness lint run syncdb \
	test