-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (36 loc) · 1.02 KB
/
Makefile
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
rst2html=rst2html
all: dist doc readme example-doc
include package.mk
dist: doc readme
python setup.py sdist
doc:
(cd doc && make html)
readme: README.html
README.txt: README.html
lynx $< -dump > $@
README.html: README.rst LICENSE
$(rst2html) $< $@
example-doc: examples/puppet/README.html examples/db-cluster/README.html
examples/puppet/README.html: examples/puppet/README.rst
$(rst2html) $< $@
examples/db-cluster/README.html: examples/db-cluster/README.rst
$(rst2html) $< $@
clean: deb-clean
rm -rf dist/ build/ poni.egg-info/ poni/*.pyc cover/ examples/puppet/README.html examples/db-cluster/README.html README.html README.txt *.pyc
(cd doc && make clean)
build-dep:
apt-get --yes install python-setuptools python-docutils lynx
test-dep:
apt-get --yes install pylint nosetests
pylint:
python -m pylint.lint poni/*.py
tests:
nosetests --processes=2
coverage:
nosetests --with-coverage --cover-package=poni --cover-html
.PHONY: readme
.PHONY: coverage
.PHONY: tests
.PHONY: dist
.PHONY: doc
.PHONY: example-doc