-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
42 lines (29 loc) · 865 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
webserver:
python -m SimpleHTTPServer 8001
# ------
# Common
# ------
$(eval venvpath := .venv27)
$(eval pip := $(venvpath)/bin/pip)
$(eval bumpversion := $(venvpath)/bin/bumpversion)
# -------
# Release
# -------
setup-release:
$(pip) install --requirement requirements-release.txt
bumpversion:
$(bumpversion) $(bump)
push:
git push && git push --tags
release: bumpversion push
# -------------
# Documentation
# -------------
docs-virtualenv:
$(eval venvpath := ".venv_sphinx")
@test -e $(venvpath)/bin/python || `command -v virtualenv` --python=`command -v python` --no-site-packages $(venvpath)
@$(venvpath)/bin/pip --quiet install --requirement requirements-docs.txt
docs-html: docs-virtualenv
$(eval venvpath := ".venv_sphinx")
touch doc/index.rst
export SPHINXBUILD="`pwd`/$(venvpath)/bin/sphinx-build"; cd doc; make html