CAP/TP02/demo_files/exo6/Makefile
2024-10-08 08:25:14 +02:00

18 lines
308 B
Makefile

MAINFILE = main
PACKAGE = Exercice6
ifndef ANTLR4
$(error variable ANTLR4 is not set)
endif
default: $(PACKAGE).py
$(PACKAGE).py: $(PACKAGE).g4
$(ANTLR4) $^ -Dlanguage=Python3
run: $(MAINFILE).py $(PACKAGE)*.py
python3 $<
clean:
rm -rf *~ $(PACKAGE)*.py $(PACKAGE)*.pyc *.interp *.tokens __pycache*