lama_byterun/lama-compiler/regression/expressions/Makefile
2023-09-04 21:45:50 +02:00

18 lines
534 B
Makefile

TESTS=$(sort $(basename $(wildcard generated*.lama)))
LAMAC = ../../src/lama-impl
.PHONY: check $(TESTS)
check: $(TESTS)
$(TESTS): %: %.lama
@echo "lama-compiler/regression/expressions/$@"
@cat $@.input | $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log
@cat $@.input | $(LAMAC) -s $< > $@.log && diff $@.log orig/$@.log
@LAMA_RUNTIME=../../runtime $(LAMAC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
clean:
rm -f *.log *.s *~
find . -maxdepth 1 -type f -not -name '*.*' -not -name 'Makefile' -delete