forked from pmorissette/bt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 856 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
46
TMPREPO=/tmp/docs/bt
default: build_dev
.PHONY: dist upload docs pages serve klink notebooks
dist:
python setup.py sdist
upload: clean dist
twine upload dist/*
docs:
$(MAKE) -C docs/ clean
$(MAKE) -C docs/ html
pages:
- rm -rf $(TMPREPO)
git clone -b gh-pages https://github.com/pmorissette/bt.git $(TMPREPO)
rm -rf $(TMPREPO)/*
cp -r docs/build/html/* $(TMPREPO)
cd $(TMPREPO); \
git add -A ; \
git commit -a -m 'auto-updating docs' ; \
git push
serve:
cd docs/build/html; \
python -m SimpleHTTPServer 9087
build_dev:
- python setup.py build_ext --inplace
clean:
- rm -rf build
- rm -rf dist
- rm -rf bt.egg-info
- find . -name '*.so' -delete
- find . -name '*.c' -delete
klink:
git subtree pull --prefix=docs/source/_themes/klink --squash klink master
notebooks:
cd docs/source; \
ipython notebook --no-browser --ip=*