Commit e3567716 authored by Vladimír Štill's avatar Vladimír Štill
Browse files

make: Adapt to moves in lib

parent 895f21c8
PY = $(wildcard *.py)
GRMS=DFA NFA CFG RegEx
-include local.make
......@@ -9,20 +10,18 @@ all : test
typecheck : $(PY:%=%.mypy)
unit:
PYTHONPATH=$$PWD pytest
PYTHONPATH=$$PWD pytest --color=yes
test: typecheck unit
%.mypy : %
$(MYPY) --check-untyped-defs --warn-redundant-casts --warn-unused-ignores --warn-return-any $<
GRMS=DFA NFA CFG RegEx
grammars : $(GRMS:%=lib/parsing/%Parser.py)
grammars : $(GRMS:%=lib/parser/%Parser.py)
$(GRMS:%=lib/parsing/%Parser.py) : lib/parsing/%Parser.py : lib/parsing/%.g4
$(GRMS:%=lib/parser/%Parser.py) : lib/parser/%Parser.py : lib/parser/%.g4
antlr4 -Dlanguage=Python3 -visitor $<
@# let's be a bit more permissive for versions
sed -i '/self.checkVersion(".*")/d' $(@:%Parser.py=%*.py)
.PHONY: %.mypy typecheck test unit all
.PHONY: %.mypy typecheck test unit all grammars
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment