summaryrefslogtreecommitdiff
path: root/Makefile
blob: b450446e38eac7608acbac06eb19097bde80f6d4 (plain)
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
ifdef PREFIX
  PREFIX_ARGS='--prefix=$(PREFIX)'
else
  PREFIX_ARGS=
endif

all:
	python setup.py build

install:
	python setup.py install $(PREFIX_ARGS)

dist-tarball:
	python setup.py sdist --formats=bztar

check-pep8:
	find cerbero ! -regex cerbero/packages/debian.py -name \*.py | sort -u | xargs pep8 --repeat

check:
	PYTHONPATH=$(PYTHONPATH):./test:./cerbero; trial test
	make check-pep8

coverage:
	rm -rf _trial_temp
	PYTHONPATH=$(PYTHONPATH):./test:./cerbero; trial --coverage test
	make show-coverage

show-coverage:
	python tools/show-coverage.py _trial_temp/coverage/cerbero.*