TESTS=$(sort $(basename $(wildcard test*.lama))) LAMAC=../src/lamac .PHONY: check $(TESTS) check: $(TESTS) $(TESTS): %: %.lama @echo $@ cat $@.input | LAMA=../runtime $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log cat $@.input | LAMA=../runtime $(LAMAC) -s $< > $@.log && diff $@.log orig/$@.log LAMA=../runtime $(LAMAC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log clean: $(RM) test*.log *.s *~ $(TESTS) *.i $(MAKE) clean -C expressions $(MAKE) clean -C deep-expressions $(MAKE) clean -C x86only