forked from coderholic/pyradio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 675 Bytes
/
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
MODULE=pyradio
SPHINXBUILD=sphinx-build
ALLSPHINXOPTS= -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
BUILDDIR=_build
.PHONY: clean
clean:
rm -rf build dist docs/_build
find . -name "*.pyc" -delete
find . -name "*.orig" -delete
find . -name "*.log" -delete
.PHONY: register
register:
python setup.py register
.PHONY: upload
upload:
python setup.py sdist upload || echo 'Upload already'
.PHONY: test
test: audit
python setup.py test
.PHONY: audit
audit:
pylama $(MODULE) -i E501
.PHONY: doc
doc: docs
python setup.py build_sphinx --source-dir=docs/ --build-dir=docs/_build --all-files
python setup.py upload_sphinx --upload-dir=docs/_build/html