forked from gorakhargosh/pathtools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
82 lines (66 loc) · 1.73 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
RM = rm -rf
.PHONY: all
all: build
help:
@echo "Possible targets:"
@echo " test - run testsuite"
@echo " doc - builds the documentation"
@echo " view-doc - opens documentation in the browser"
@echo " upload-doc - uploads the documentation to PyPI"
@echo " develop - set up development environment"
@echo " clean - clean up generated files"
@echo " release - performs a release"
@echo " auto - continuous builds"
release: clean test upload-doc
python setup.py sdist upload
build: doc
@bin/python setup.py build
doc: develop
@make SPHINXBUILD=../bin/sphinx-build -C docs/ html
upload-doc: doc
@bin/python setup.py upload_docs --upload-dir=docs/build/html
view-doc: doc
@bin/python -c "import webbrowser; webbrowser.open('docs/build/html/index.html')"
test:
@bin/coverage erase
@bin/python-tests tests/run_tests.py
@bin/coverage html
auto: scripts/nosy.py
@bin/python scripts/nosy.py .
# Development environment targets and dependencies.
develop: submodules bin/python
submodules:
@git submodule update --init --recursive
bin/buildout: buildout.cfg setup.py
@python scripts/bootstrap.py --distribute
bin/python: bin/buildout
@bin/buildout
clean:
@make -C docs/ clean > /dev/null
@$(RM) build/ *.egg-info/
@find . \( \
-iname "*.pyc" \
-or -iname "*.pyo" \
-or -iname "*.so" \
-or -iname "*.o" \
-or -iname "*~" \
-or -iname "._*" \
-or -iname "*.swp" \
-or -iname "Desktop.ini" \
-or -iname "Thumbs.db" \
-or -iname "__MACOSX__" \
-or -iname ".DS_Store" \
\) -delete
distclean: clean
@$(RM) \
dist/ \
bin/ \
develop-eggs/ \
eggs/ \
parts/ \
MANIFEST \
htmlcov/ \
.pythoscope/ \
.coverage \
.installed.cfg
include package.mk