aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTristan Williams <tgwil@tgwil.net>2024-10-27 22:15:12 -0400
committerTristan Williams <tgwil@tgwil.net>2024-10-27 22:15:12 -0400
commit6ad840ed600bebfe4801b045a2bb24abb848b54e (patch)
tree08c6694fabc0d05b124f8360246400b948ed5e9e /Makefile
downloadtemplate.cl-6ad840ed600bebfe4801b045a2bb24abb848b54e.tar.gz
template.cl-6ad840ed600bebfe4801b045a2bb24abb848b54e.tar.bz2
template.cl-6ad840ed600bebfe4801b045a2bb24abb848b54e.zip
Add everything
I've already been working on a CL template. Just add the fucker.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a1fb064
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
1# Makefile for SYSTEM
2# AUTHOR:
3
4
5# Default, run when make recieves no arguments
6all: clean test SYSTEM
7
8
9# Compile the SYSTEM executable
10.PHONY: SYSTEM
11SYSTEM:
12 sbcl --no-userinit --no-sysinit --non-interactive \
13 --load ~/lisp/quicklisp/setup.lisp \
14 --eval '(load "SYSTEM.asd")' \
15 --eval '(ql:quickload "SYSTEM")' \
16 --eval "(sb-ext:save-lisp-and-die \"SYSTEM\" :executable t :toplevel #'SYSTEM:entrypoint :compression 9)"
17
18
19# Run test suite
20.PHONY: test
21test:
22 sbcl --no-userinit --no-sysinit --non-interactive \
23 --load ~/lisp/quicklisp/setup.lisp \
24 --eval '(load "SYSTEM.asd")' \
25 --eval "(asdf:test-system 'SYSTEM)"
26
27
28# Clean everything
29.PHONY: clean
30clean:
31 @if test -f fash; then rm -f fash && echo "rm: SYSTEM"; fi