forked from pmorissette/ffn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (35 loc) · 858 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
47
TMPREPO=/tmp/docs/ffn
.PHONY: clean dist docs pages serve notebooks klink test lint fix
test:
python -m nose --with-coverage --cover-package ffn
lint:
python -m flake8 ffn setup.py
fix:
python -m black ffn setup.py
clean:
- rm -rf dist
- rm -rf ffn.egg-info
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/ffn.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
notebooks:
cd docs/source; \
ipython notebook --no-browser --ip=*
klink:
git subtree pull --prefix=docs/source/_themes/klink --squash klink master