-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
35 lines (29 loc) · 1 KB
/
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
26
27
28
29
30
31
32
33
34
35
lisp_files := $(wildcard *.lisp)
asd_files := $(wildcard *.asd)
bin/spci: bin/ $(lisp_files) $(asd_files)
sbcl --disable-debugger \
--eval '(ql:quickload "spacelang")' \
--eval '(asdf:load-system "spacelang")' \
--eval '(use-package :spacelang)' \
--eval "(sb-ext:save-lisp-and-die #p\"bin/spci\" :toplevel #'space! :executable t)"
bin/:
mkdir bin
.PHONY: DockerRun
DockerRun:
docker build . -t spacelang
docker run -it spacelang
compiler:
sbcl \
--disable-debugger \
--eval '(ql:quickload "spacelang")' \
--eval '(asdf:load-system "spacelang")' \
--eval '(use-package :spacelang.compiler)' \
--eval '(compiler)'
bake:
sbcl --disable-debugger \
--eval '(ql:quickload "spacelang")' \
--eval '(asdf:load-system "spacelang")' \
--eval '(use-package :spacelang.compiler)' \
--eval '(bake-binary\
#p "/home/cstml/.quicklisp/local-projects/spacelang/bin/baked"\
#p"/home/cstml/.quicklisp/local-projects/spacelang/example/add_2.sp")'