TESTS=$(basename $(wildcard generated*.expr)) .PHONY: check $(TESTS) check: $(TESTS) $(TESTS): %: %.expr RC_RUNTIME=../../runtime ../../rc.native $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log cat $@.input | RC_RUNTIME=../../runtime ../../rc.native -i $< > $@.log && diff $@.log orig/$@.log cat $@.input | RC_RUNTIME=../../runtime ../../rc.native -s $< > $@.log && diff $@.log orig/$@.log clean: rm -f *.log *.s *~ $(TESTS)