-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 loc) · 1.16 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
36
37
38
39
40
41
42
43
44
45
46
47
build:
dune build
build-context-image:
docker build -t context:latest -f docker/DockerfileContext .
build-hello-image: build-context-image
docker build --no-cache -t lispwhello:latest -f docker/DockerfileLispweb .
build-repl-image: build-context-image
docker build --no-cache -t lispwrepl:latest -f docker/DockerfileLispwebRepl .
hello: build-hello-image
docker run -e LEVEL=INFO lispwhello
repl: build-repl-image
docker run -i lispwrepl
test-release:
dune runtest
test-lib:
LISPW_LIB_DIR=/usr/lib/lispw/ LEVEL=DEBUG rlwrap lispw --load scm/test/test_list.scm --load scm/test/test_string.scm
welcome:
LISPW_LIB_DIR=/usr/lib/lispw/ LEVEL=DEBUG rlwrap lispw --load scm/examples/hello.scm
repl-raw:
LISPW_LIB_DIR=/usr/lib/lispw/ rlwrap lispw --load scm/examples/repl.scm
doc: clean
dune build
dune build @doc
python3 -m http.server --directory _build/default/_doc/_html/
install:
mkdir /usr/lib/lispw
cp -R ./scm/lib/* /usr/lib/lispw
cp ./_build/default/bin/lispwebevaluate.exe /usr/bin/lispw
echo "You should consider adding: echo 'export LISPW_LIB_DIR=/usr/lib/lispw/' > ~/.profile"
uninstall:
rm -r /usr/lib/lispw
rm /usr/bin/lispw
clean:
dune clean