-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (51 loc) · 1.57 KB
/
Makefile
File metadata and controls
65 lines (51 loc) · 1.57 KB
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
57
58
59
60
61
62
63
64
65
help:
@echo "Please use 'make <target>' where <target> is one of"
@echo " clean remove temporary files created by build tools"
@echo " cleanmeta removes all META-* and egg-info/ files created by build tools"
@echo " cleantox removes tox files"
@echo " cleancov remove all files related to coverage reports"
@echo " cleandocs remove all files related to docs"
@echo " cleanall all the above + tmp files from development tools"
@echo " test run test suite"
@echo " documentation build documentation"
@echo " sdist make a source distribution"
@echo " bdist make an egg distribution"
@echo " install install package"
@echo " tox run all tox environments and combine coverage report after"
clean:
-rm -f MANIFEST
-rm -rf dist/
-rm -rf build/
cleancov:
-rm -rf htmlcov/
-coverage combine
-coverage erase
cleanmeta:
-rm -rf redpipe.egg-info/
cleandocs:
-rm -rf docs/_build
cleanall: clean cleancov cleanmeta cleandocs
-find . -type f -name "*~" -exec rm -f "{}" \;
-find . -type f -name "*.orig" -exec rm -f "{}" \;
-find . -type f -name "*.rej" -exec rm -f "{}" \;
-find . -type f -name "*.pyc" -exec rm -f "{}" \;
-rm -rf .tox/
sdist: cleanmeta
python setup.py sdist
bdist: cleanmeta
python setup.py bdist_egg
install:
python setup.py install
local:
python setup.py build_ext --inplace
documentation:
pip install sphinx -q
sphinx-build -M html "./docs" "./docs/_build"
test:
make tox
tox:
coverage erase
tox
coverage combine
coverage report
.PHONY: test