/
Makefile
57 lines (44 loc) · 811 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
48
49
50
51
52
53
54
55
56
57
PKG=komoog
PYTHON=python3
PIP=pip3
default:
make python
clean:
-rm -f *.o
make pyclean
clean_all:
make clean
make pyclean
pyclean:
-rm -f *.so
-rm -rf *.egg-info*
-rm -rf ./tmp/
-rm -rf ./build/
python:
${PIP} install -e .
checkdocs:
${PYTHON} setup.py checkdocs
pypi:
mkdir -p dist
touch dist/foobar
rm dist/*
${PYTHON} setup.py sdist
twine check dist/*
upload:
twine upload dist/*
readme:
pandoc --from markdown_github --to rst README.md > _README.rst
sed -e "s/^\:\:/\.\. code\:\: bash/g" _README.rst > README.rst
rm _README.rst
rstcheck README.rst
cd docs; ${PYTHON} make_about.py
test:
pytest --cov=${PKG} ${PKG}/tests/
authors:
${PYTHON} authorlist.py
grootinstall:
/opt/${PYTHON}36/bin/pip3.6 install --user ../${PKG}
groot:
git fetch
git pull
make grootinstall