-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
42 lines (36 loc) · 1.37 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
LISP?=sbcl
all: test
build:
$(LISP) --non-interactive \
--load torrents.asd \
--eval '(ql:quickload :torrents)' \
--eval '(asdf:make :torrents)'
build-gui:
$(LISP) --non-interactive \
--load torrents.asd \
--eval '(ql:quickload :torrents/tk)' \
--eval '(asdf:make :torrents/tk)'
test:
$(LISP) --non-interactive \
--load torrents.asd \
--load torrents-test.asd \
--eval '(ql:quickload :torrents)' \
--eval '(ql:quickload :torrents-test)' \
--eval '(prove:run #P"tests/test-torrents.lisp")' \
--eval '(prove:run #P"tests/test-1337.lisp")' \
--eval '(prove:run #P"tests/test-downloadsme.lisp")'
test-end2end:
$(LISP) --non-interactive \
--load torrents.asd \
--load torrents-test.asd \
--eval '(ql:quickload :torrents)' \
--eval '(ql:quickload :torrents-test)' \
--eval '(prove:run #P"tests/end2end.lisp")'
install:
# install dependencies, mostly for docker.
# git clone https://github.com/vindarel/replic/ ~/quicklisp/local-projects/replic
# echo "------ cloning nodgui" # before it was in Quicklisp?
# git clone https://notabug.org/cage/nodgui ~/quicklisp/local-projects/nodgui
# echo "------ cloning cl-transmission" # before QL too?
# git clone https://github.com/libre-man/cl-transmission/ ~/quicklisp/local-projects/cl-transmission
echo "All dependencies should be in Quicklisp now. Nothing to do."