mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-15 19:28:47 +00:00
19 lines
482 B
Makefile
19 lines
482 B
Makefile
TESTS=$(basename $(wildcard test*.expr))
|
|
|
|
RC=../src/rc.opt
|
|
|
|
.PHONY: check $(TESTS)
|
|
|
|
check: $(TESTS)
|
|
|
|
$(TESTS): %: %.expr
|
|
@echo $@
|
|
# @$(RC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
|
|
cat $@.input | $(RC) -i $< > $@.log && diff $@.log orig/$@.log
|
|
@cat $@.input | $(RC) -s $< 2> /dev/null > $@.log && diff $@.log orig/$@.log; true
|
|
|
|
clean:
|
|
$(RM) test*.log *.s *~ $(TESTS)
|
|
$(MAKE) clean -C expressions
|
|
$(MAKE) clean -C deep-expressions
|
|
$(MAKE) clean -C x86only
|