-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
47 lines (35 loc) · 971 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# base stubs
guix-time-machine = guix time-machine -C ./channels-lock.scm
guile-shell-default-args = \
guile-next \
guile-ares-rs \
-L channel \
--no-substitutes #--rebuild-cache
commonlisp-shell-default-args = \
sbcl \
sbcl-slynk \
-L channel \
-D -f guix.scm \
--rebuild-cache
nrepl-file = "ares.scm"
slynk-file = "repl.lisp"
guile = ${guile-shell-default-args} -- guile -L ./src
commonlisp = ${commonlisp-shell-default-args} -- sbcl --load ${slynk-file}
slynk:
guix shell ${commonlisp}
nrepl:
guix shell ${guile} -l ${nrepl-file}
build:
guix build -f guix.scm -L channel
sway-nrepl-cmd = "exec foot make nrepl; exec foot"
sway-tm/nrepl-cmd = "exec foot make tm/nrepl; exec foot"
sway+nrepl: # have to create tmpfile for `sway -c`
$(eval TMP := $(shell mktemp))
@echo ${sway-nrepl-cmd} >> $(TMP)
sway -c $(TMP)
rm -rf $(TMP)
sway+tm/nrepl:
$(eval TMP := $(shell mktemp))
@echo ${sway-tm/nrepl-cmd} >> $(TMP)
sway -c $(TMP)
rm -rf $(TMP)