-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 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
SHELL=/bin/bash
DEPS=alexandria cl-ppcre esrap 1am portable-threads jp-numeral drakma flexi-streams yason papyrus named-readtables babel trivial-download usocket daemon unix-opts
all:
cl-skkserv.zip:
# Bundle
ros -e "(ql:quickload '($(DEPS)) :silent t)" -e "(ql:bundle-systems '($(DEPS)) :to #p\"./cl-skkserv\")" -q
# Local Projects
cd cl-skkserv/local-projects && curl -L https://github.com/asciian/cl-skkserv/archive/master.tar.gz | gunzip -c - | tar xf -
# Makefile
echo "all:" > cl-skkserv/Makefile
echo " sbcl --load bundle.lisp --eval '(asdf:make :cl-skkserv)'" >> cl-skkserv/Makefile
# Readme
cp README.md cl-skkserv/README.md
# License
cp LICENSE.md cl-skkserv/LICENSE.md
# Zip
zip cl-skkserv.zip -r cl-skkserv
.PHONY: test clean format http
test:
./roswell/skkserv.ros start --no-init --port=2278
ros run -e '(asdf:test-system :cl-skkserv)' -q
./roswell/skkserv.ros stop --no-init --port=2278
clean:
find . -name '*~' | xargs rm -f
rm -rf cl-skksrv/ cl-skkserv.zip
format:
find . -name '*.lisp' | xargs gsed -i -e 's/\t/ /g'
find . -name '*.lisp' | xargs ros fmt
http:
clackup <(echo "(lack:builder (:static :path #'identity) #'identity)")