r9086: Automated commit for Debian build of kmrcl upstream-version-1.69
[kmrcl.git] / Makefile
index bcd6a484194acb7eba7bdc8ecd18089ea0646734..dfa7a11eea67383475d44e3435f41e2975691576 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,32 @@
+.PHONY: all clean test test-acl test-sbcl
+
+test-file:=`pwd`/run-tests.lisp
 all:
 
 clean:
-       @rm -rf `find . -name \*~ -or -name \*.fasl -or -name \*.x86f -or -name \*.fas -or -name \*.err -or -name \*.fasl[am][18]\* -or -name \*.ufsl -or -name \*.dfsl -or -name \*.cfsl`
+       @find . -type f -name "*.fasl*" -or -name "*.ufsl" -or -name "*.x86f" \
+         -or -name "*.fas" -or -name "*.pfsl" -or -name "*.dfsl" \
+         -or -name "*~" -or -name ".#*" -or -name "#*#" | xargs rm -f
+
+test: test-alisp
+
+test-alisp:
+       alisp8 -q -L $(test-file)
+
+test-mlisp:
+       mlisp -q -L $(test-file)
+
+test-sbcl:
+       sbcl --noinform --disable-debugger --userinit $(test-file)
+
+test-cmucl:
+       lisp -init $(test-file)
+
+test-lw:
+       lw-console -init $(test-file)
+
+test-scl: 
+       scl -init $(test-file)
+
+test-clisp: 
+       clisp -norc -q -i $(test-file)