-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (36 loc) · 913 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
.PHONY: build build_cython install build_dist test docs clean
MODULE := kola
PIP_MODULE := KoiLang
all: clean build lint build_dist
refresh: clean develop test lint
build_lexer: kola/lex.yy.c build
kola/lex.yy.c: kola/kolalexer.l
flex kola/kolalexer.l
build_cython:
USE_CYTHON=true python setup.py build_ext --inplace
build:
python setup.py build_ext --inplace
install:
python setup.py install
run:
python -m kola
develop:
python setup.py develop
build_dist:
python setup.py sdist bdist_wheel
lint:
flake8 ${MODULE}/ tests/ --exclude __init__.py --count --max-line-length=127 --extend-ignore=W293,E402
test: build
python -m unittest
coverage:
coverage run --source ${MODULE} --parallel-mode -m unittest
coverage combine
coverage html -i
uninstall:
pip uninstall ${PIP_MODULE} -y || true
docs:
cd docs/api && make html
clean:
rm -rf build
rm -rf dist
rm -rf ${PIP_MODULE}.egg-info