forked from rudymatela/python-leancheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 688 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 688 Bytes
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
# Makefile for python-leancheck
#
# (C) 2023-2024 Rudy Matela
# Distributed under the LGPL v2.1 or later (see the file LICENSE)
all:
python src/leancheck.py
repl:
python -i src/leancheck.py -c 'from leancheck import *'
test: examples
python src/leancheck.py
mypy src/ tests/ examples/
pytest
validate-pyproject pyproject.toml
doc:
PYTHONPATH=src pdoc leancheck -o docs
opendoc: doc
wbi docs/index.html
.PHONY: examples
examples: \
examples/arith.run \
examples/bool.run \
examples/sort.run \
examples/empty.run
clean:
rm -rf __pycache__ src/__pycache__ tests/__pycache__ .pytest_cache
%.run: %.py
PYTHONPATH=src python $<
%.repl: %.py
PYTHONPATH=src python -i $<