command?= lispworks # this is just a convention...
loadfile=-siteinit=-init -
elseifeq($(l), sbcl)
command?= sbcl
loadfile=--no-userinit--no-sysinit--load
else
$(error Don\'t know how to operate on implementation $(l))
endif
.PHONY:test
distrib:
tar czf iterate.tgz $(FILES)$(TEXFILES)$(PDFFILES)
devel:
tar czf iterate-rcs.tgz $(FILES)$(RCSFILES)$(TEXFILES) Makefile
test:
$(command)$(loadfile) test.lisp
# Useful for reproducing test failures with Docker.
test-docker-repl:
@${DOCKER} run --rm-i-t--pull always -u$(shell id-u):$(shell id-g)-v$(sourceDirectory):$(sourceDirectory)-w$(sourceDirectory)/test clfoundation/${l}:latest
test-docker-lisp:
@${DOCKER} run --rm-i-t--pull always -u$(shell id-u):$(shell id-g)-v$(sourceDirectory):$(sourceDirectory)-w$(sourceDirectory) clfoundation/${l}:latest make test l=${l}t=${t}