From 6ad840ed600bebfe4801b045a2bb24abb848b54e Mon Sep 17 00:00:00 2001 From: Tristan Williams Date: Sun, 27 Oct 2024 22:15:12 -0400 Subject: Add everything I've already been working on a CL template. Just add the fucker. --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a1fb064 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +# Makefile for SYSTEM +# AUTHOR: + + +# Default, run when make recieves no arguments +all: clean test SYSTEM + + +# Compile the SYSTEM executable +.PHONY: SYSTEM +SYSTEM: + sbcl --no-userinit --no-sysinit --non-interactive \ + --load ~/lisp/quicklisp/setup.lisp \ + --eval '(load "SYSTEM.asd")' \ + --eval '(ql:quickload "SYSTEM")' \ + --eval "(sb-ext:save-lisp-and-die \"SYSTEM\" :executable t :toplevel #'SYSTEM:entrypoint :compression 9)" + + +# Run test suite +.PHONY: test +test: + sbcl --no-userinit --no-sysinit --non-interactive \ + --load ~/lisp/quicklisp/setup.lisp \ + --eval '(load "SYSTEM.asd")' \ + --eval "(asdf:test-system 'SYSTEM)" + + +# Clean everything +.PHONY: clean +clean: + @if test -f fash; then rm -f fash && echo "rm: SYSTEM"; fi -- cgit v1.2.3