diff options
author | Tristan Williams <tgwil@tgwil.net> | 2024-10-27 22:15:12 -0400 |
---|---|---|
committer | Tristan Williams <tgwil@tgwil.net> | 2024-10-27 22:15:12 -0400 |
commit | 6ad840ed600bebfe4801b045a2bb24abb848b54e (patch) | |
tree | 08c6694fabc0d05b124f8360246400b948ed5e9e /Makefile | |
download | template.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-- | Makefile | 31 |
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 | ||
6 | all: clean test SYSTEM | ||
7 | |||
8 | |||
9 | # Compile the SYSTEM executable | ||
10 | .PHONY: SYSTEM | ||
11 | SYSTEM: | ||
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 | ||
21 | test: | ||
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 | ||
30 | clean: | ||
31 | @if test -f fash; then rm -f fash && echo "rm: SYSTEM"; fi | ||