~bcsaller/pyjuju/ensemble-status

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
PEP8=pep8
COVERAGE_FILES=`find ensemble -name "*py" | grep -v "tests\|lib/mocker.py\|lib/testing.py"`

all: check etags tests html

html:
	make -C docs html
	#@gnome-open docs/build/html/index.html

tests:
	./test

coverage:
	coverage run ./test
	coverage html $(COVERAGE_FILES)
	gnome-open htmlcov/index.html

ftests:
	./test --functional

tags:
	@ctags --python-kinds=-iv -R ensemble

etags:
	@ctags -e --python-kinds=-iv -R ensemble

modified=$(shell bzr status -S  |grep -P '^\s*M' | awk '{print $$2;}'| grep -P ".py$$")
check:
	@test -n "$(modified)" && echo $(modified) | xargs $(PEP8) --repeat
	@test -n "$(modified)" && echo $(modified) | xargs pyflakes


modified=$(shell bzr status -S -r ancestor:../trunk |grep -P '^\s*M' | awk '{print $$2;}'| grep -P ".py$$")
review:
	@test -n "$(modified)" && echo $(modified) | xargs $(PEP8) --repeat
	@test -n "$(modified)" && echo $(modified) | xargs pyflakes


.PHONY: tags check review