-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
56 lines (41 loc) · 1.2 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
54
55
56
PYTHON ?= python
rst2html ?= rst2html
all: poni/version.py dist doc readme
include package.mk
poni/version.py: version.py
python $< $@
dist: doc readme
python setup.py sdist
doc:
make -C doc html
readme: README.html
README.txt: README.html
lynx $< -dump > $@
README.html: README.rst LICENSE
$(rst2html) $< $@
clean:
$(RM) -r dist/ build/ poni.egg-info/ cover/
$(RM) poni/version.py poni/*.pyc tests/*.pyc *.pyc README.html README.txt \
examples/puppet/README.html examples/db-cluster/README.html
$(RM) ../poni?$(shell git describe)* \
../poni?$(shell git describe --abbrev=0)-*.tar.gz
$(MAKE) -C doc clean
build-dep:
apt-get --yes install python-setuptools python-docutils python-sphinx lynx
test-dep:
apt-get --yes install pep8 pylint python-pytest \
python-argh python-boto python-cheetah python-genshi python-git
pep8:
pep8 --ignore=E501 poni/*.py
pylint:
if $(PYTHON) -m pylint.lint --help-msg C0330 | grep -qF bad-continuation; \
then $(PYTHON) -m pylint.lint --rcfile pylintrc --disable=C0325,C0330 poni; \
else $(PYTHON) -m pylint.lint --rcfile pylintrc poni; \
fi
tests:
PYTHONPATH=. $(PYTHON) -m pytest -vv tests
.PHONY: readme
.PHONY: coverage
.PHONY: tests
.PHONY: dist
.PHONY: doc