# 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