Loading Makefile +5 −6 Original line number Original line Diff line number Diff line PY = $(wildcard *.py) PY = $(wildcard *.py) GRMS=DFA NFA CFG RegEx -include local.make -include local.make Loading @@ -9,20 +10,18 @@ all : test typecheck : $(PY:%=%.mypy) typecheck : $(PY:%=%.mypy) unit: unit: PYTHONPATH=$$PWD pytest PYTHONPATH=$$PWD pytest --color=yes test: typecheck unit test: typecheck unit %.mypy : % %.mypy : % $(MYPY) --check-untyped-defs --warn-redundant-casts --warn-unused-ignores --warn-return-any $< $(MYPY) --check-untyped-defs --warn-redundant-casts --warn-unused-ignores --warn-return-any $< GRMS=DFA NFA CFG RegEx grammars : $(GRMS:%=lib/parser/%Parser.py) grammars : $(GRMS:%=lib/parsing/%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 $< antlr4 -Dlanguage=Python3 -visitor $< @# let's be a bit more permissive for versions @# let's be a bit more permissive for versions sed -i '/self.checkVersion(".*")/d' $(@:%Parser.py=%*.py) sed -i '/self.checkVersion(".*")/d' $(@:%Parser.py=%*.py) .PHONY: %.mypy typecheck test unit all .PHONY: %.mypy typecheck test unit all grammars Loading
Makefile +5 −6 Original line number Original line Diff line number Diff line PY = $(wildcard *.py) PY = $(wildcard *.py) GRMS=DFA NFA CFG RegEx -include local.make -include local.make Loading @@ -9,20 +10,18 @@ all : test typecheck : $(PY:%=%.mypy) typecheck : $(PY:%=%.mypy) unit: unit: PYTHONPATH=$$PWD pytest PYTHONPATH=$$PWD pytest --color=yes test: typecheck unit test: typecheck unit %.mypy : % %.mypy : % $(MYPY) --check-untyped-defs --warn-redundant-casts --warn-unused-ignores --warn-return-any $< $(MYPY) --check-untyped-defs --warn-redundant-casts --warn-unused-ignores --warn-return-any $< GRMS=DFA NFA CFG RegEx grammars : $(GRMS:%=lib/parser/%Parser.py) grammars : $(GRMS:%=lib/parsing/%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 $< antlr4 -Dlanguage=Python3 -visitor $< @# let's be a bit more permissive for versions @# let's be a bit more permissive for versions sed -i '/self.checkVersion(".*")/d' $(@:%Parser.py=%*.py) sed -i '/self.checkVersion(".*")/d' $(@:%Parser.py=%*.py) .PHONY: %.mypy typecheck test unit all .PHONY: %.mypy typecheck test unit all grammars