-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (36 loc) · 1.18 KB
/
Makefile
File metadata and controls
49 lines (36 loc) · 1.18 KB
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
test: grako_test examples
grako_test:
python -u -m grako.test 2>&1
examples: regex_test antlr_test
regex_test:
cd examples/regex; make -s clean; make -s test > /dev/null
antlr_test:
cd examples/antlr2grako; make -s clean; make -s test > /dev/null
flake8:
flake8 --exclude .tox,docs,tmp,.ropeproject --max-line-length 200
publish:
python setup.py sdist
python setup.py sdist bdist_wheel --universal
docs: tmp/grako_docs.zip
tmp/grako_docs.zip: tmp/index.html
zip --junk-paths tmp/grako_docs.zip tmp/index.html
tmp/index.html: README.rst etc/style.css
rst2html \
--stylesheet-path etc/style.css \
--embed-stylesheet \
README.rst > tmp/index.html
cython:
python setup.py build_ext --inplace
python3 setup.py build_ext --inplace
clean: clean_cython
find grako -name "__pycache__" | xargs rm -rf
find grako -name "*.pyc" | xargs rm -f
find grako -name "*.pyo" | xargs rm -f
find grako -name "*.orig" | xargs rm -f
find examples -name "__pycache__" | xargs rm -rf
find examples -name "*.pyc" | xargs rm -f
find examples -name "*.pyo" | xargs rm -f
find examples -name "*.orig" | xargs rm -f
clean_cython:
find grako -name "*.so" | xargs rm -f
find grako -name "*.c" | xargs rm -f