forked from coderholic/pyradio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (36 loc) · 895 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
34
35
36
37
38
39
40
41
42
43
44
45
MODULE=pyradio
SPHINXBUILD=sphinx-build
ALLSPHINXOPTS= -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
BUILDDIR=_build
.PHONY: build
build:
python3 setup.py build
.PHONY: install
install:
devel/build_install_pyradio 3
.PHONY: uninstall
uninstall:
devel/build_install_pyradio -u
.PHONY: clean
clean:
sudo rm -rf build dist docs/_build
sudo find . -name "*.pyc" -delete
sudo find . -name "*.orig" -delete
sudo find . -name "*.log" -delete
sudo find . -name "*.1.gz" -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