-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathMakefile
More file actions
113 lines (88 loc) · 2.84 KB
/
Makefile
File metadata and controls
113 lines (88 loc) · 2.84 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# pipefail is not POSIX complaint
GUIXTM=guix time-machine -C ./env/guix/rde/env/guix/channels.scm
GUIX=$(GUIXTM) --
EMACS=$(GUIX) shell emacs emacs-ox-html-stable-ids -- emacs
HUT=$(GUIX) shell hut -- hut
EXAMPLES_SRC_DIR=./examples/src
CONFIGS=${EXAMPLES_SRC_DIR}/rde-configs/configs.scm
DEV_ENV_LOAD_PATH=-L ./env/guix -L ./env/dev -L ./src
RDE_SRC_LOAD_PATH=-L ./env/guix -L ./env/dev -L ./src
EXAMPLES_LOAD_PATH=-L ${EXAMPLES_SRC_DIR}
DEV_SRC_LOAD_PATH=${RDE_SRC_LOAD_PATH} \
${EXAMPLES_LOAD_PATH} \
-L ./tests \
-L ./files/emacs/gider/src \
QEMU_BASE_ARGS= \
-m 8192 -smp 1 -enable-kvm \
-display gtk,zoom-to-fit=on \
-vga qxl
# -vga none -device virtio-gpu-pci
# -vga vmware
# -vga none -device qxl-vga,vgamem_mb=32
all: ares
@echo default target
check:
guile -L ./src -L ./tests -L ./files/emacs/gider/src -c \
'((@ (rde test-runners) run-project-tests-cli))'
guix-pull:
make -C examples guix-pull
ares:
${GUIX} shell ${DEV_ENV_LOAD_PATH} \
guile guile-ares-rs \
-e '(@ (rde env dev packages) guix-package)' \
-- guile \
${DEV_SRC_LOAD_PATH} \
-c \
"(begin (use-modules (guix gexp)) #;(load gexp reader macro globally) \
((@ (ares server) run-nrepl-server)))"
repl: ares
examples/ixy/home/reconfigure:
RDE_TARGET=ixy-home ${GUIX} home \
${RDE_SRC_LOAD_PATH} ${EXAMPLES_LOAD_PATH} \
reconfigure ${CONFIGS}
examples/ixy/home/build:
RDE_TARGET=ixy-home ${GUIX} home \
${RDE_SRC_LOAD_PATH} ${EXAMPLES_LOAD_PATH} \
build ${CONFIGS}
examples/target/rde-live.iso:
make -C examples target/rde-live.iso
qemu/1/run:
qemu-system-x86_64 \
${QEMU_BASE_ARGS} \
-net user,hostfwd=tcp::10021-:22 -net nic -boot menu=on,order=d \
-drive file=tmp/system.img
qemu/1/deploy:
guix deploy tmp/config.scm --no-grafts
qemu/live/run-from-rde-iso: examples/target/rde-live.iso
qemu-system-x86_64 \
${QEMU_BASE_ARGS} \
-net user,hostfwd=tcp::10022-:22 -net nic -boot menu=on,order=d \
-drive media=cdrom,file=examples/target/rde-live.iso
doc/rde-tool-list.texi: doc/rde-tool-list.org
pandoc doc/rde-tool-list.org -f org -t texinfo \
-o doc/rde-tool-list.texi
sed -i '1,3d' doc/rde-tool-list.texi
doc/rde.texi: doc/rde-tool-list.texi doc/getting-started.texi
doc/rde.info: doc/rde.texi
makeinfo -o doc/rde.info doc/rde.texi
doc/rde.html: doc/rde.texi
${GUIX} shell texinfo -- \
makeinfo --html --no-split \
--css-ref=/assets/manual.css \
-c "EXTRA_HEAD=<meta name=\"viewport\" \
content=\"width=device-width, initial-scale=1\" />" \
-o doc/rde.html doc/rde.texi
doc/rde.pdf: doc/rde.texi
makeinfo --pdf -o doc/rde.pdf doc/rde.texi
README.html: README
${EMACS} -Q --batch -l doc/html-export-config.el README \
--funcall org-html-export-to-html
deploy-README.html: README.html
${HUT} git update --readme README.html \
--repo https://git.sr.ht/~abcdw/rde
clean:
rm -rf target
rm -f doc/rde.html
rm -f doc/rde.pdf
rm -f doc/rde.info
rm -f doc/rde-tool-list.texi