forked from klen/makesite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (30 loc) · 778 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
MODULE=makesite
SPHINXBUILD=sphinx-build
ALLSPHINXOPTS= -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
BUILDDIR=_build
clean:
sudo rm -rf build dist $(MODULE).egg-info/ docs/_build
find . -name "*.pyc" -delete
find . -name "*.orig" -delete
install: remove _install clean
register: _register clean
upload: _upload install _commit doc
_upload:
python setup.py sdist upload
_commit:
git add .
git add . -u
git commit
git push origin
git push intaxi
_register:
python setup.py register
remove:
sudo pip uninstall $(MODULE)
_install:
sudo pip install -U .
test:
python tests/test_$(MODULE).py
doc:
python setup.py build_sphinx --source-dir=docs/ --build-dir=docs/_build --all-files
python setup.py upload_sphinx --upload-dir=docs/_build/html