-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (21 loc) · 858 Bytes
/
Makefile
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
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
PACKAGE=money-thing
PACKAGEUTILS=money-thing.app-utils
OUT=mt
ENTRY=-main
$(OUT): buildapp *.lisp quicklisp-manifest.txt
./buildapp --manifest-file quicklisp-manifest.txt \
--load-system asdf \
--eval '(push "$(ROOT_DIR)/" asdf:*central-registry*)' \
--load-system $(PACKAGE) \
--eval '($(PACKAGEUTILS)::internal-disable-debugger)' \
--output $(OUT) --entry $(PACKAGE):$(ENTRY)
quicklisp-manifest.txt: *.asd
sbcl --non-interactive \
--eval '(push #P"$(ROOT_DIR)/" asdf:*central-registry*)'\
--eval '(ql:quickload "$(PACKAGE)")'\
--eval '(ql:write-asdf-manifest-file "quicklisp-manifest.txt")'
buildapp:
sbcl --eval '(ql:quickload "buildapp")' --eval '(buildapp:build-buildapp)' --non-interactive
clean:
rm -f *.fasl $(OUT) buildapp quicklisp-manifest.txt