blob: a1fb0644d8bd64d596fab20daa519feb8c7b2735 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|