pieuvre/Makefile
Adrien Vannson 8fc318b75e
Tests
2022-05-10 11:48:53 +02:00

21 lines
364 B
Makefile

all: pieuvre
pieuvre: *.ml *.mll *.mly
ocamlbuild -yaccflag -v -lib unix -lib str main.native
ln -f -s main.native pieuvre
chmod +x pieuvre
main.byte:
ocamlbuild -yaccflag -v main.byte
byte: main.byte
test: all
for f in tests/*.8pus; do echo "### Testing $$f:"; ./pieuvre $$f; echo ""; done
clean:
ocamlbuild -clean
rm -f pieuvre
.PHONY: clean test