From 199dc99c36518ee9c3fa8b409654cb925da8223c Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Mon, 27 May 2024 23:46:43 -0500 Subject: [PATCH] Add Makefile for binary/cleanup --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..482e6e7 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +LISP ?= sbcl + +all: clean build + +clean: + -rm mirror-img + +quicklisp: + curl "https://beta.quicklisp.org/quicklisp.lisp" -o /tmp/ql.lisp + $(LISP) --load /tmp/ql.lisp \ + --eval '(quicklisp-quickstart:install :path "~/.local/lib/quicklisp/")' \ + --eval '(ql:add-to-init-file)' \ + --eval '(quit)' + +build: + $(LISP) --load mirror-img.asd \ + --eval '(ql:quickload :mirror-img)' \ + --eval '(ql:quickload :mirror-img/unix)' \ + --eval '(asdf:make :mirror-img/unix)' \ + --eval '(quit)'