lama_byterun/regression/expressions/Makefile
Dmitry Boulytchev c084e57b27 Sync
2020-03-15 12:41:31 +03:00

18 lines
471 B
Makefile

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