-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
35 lines (27 loc) · 798 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
.PHONY: doc webdocs wc clean all test examples
all:
echo "Targets: clean, wc, doc, test, pages"
clean:
rm -f *.fasl *~ \#*
make -C doc clean
wc:
wc -l *.lisp
test: clean
sbcl --eval '(let ((asdf:*central-registry* (cons #p"./" asdf:*central-registry*))) (asdf:test-system :screamer) (quit))'
doc:
make -C doc all
pages:
rm -rf web-tmp
mkdir web-tmp
make -C doc html pdf
cp doc/*.pdf doc/examples/*.lisp doc/examples/*.html web-tmp/
sh -c 'for f in doc/*.html; \
do sbcl --script tools/splice-to-head.lisp tools/analytics.script \
< $$f > web-tmp/`basename $$f`; done'
cp web-tmp/screamer.html web-tmp/index.html
cp tools/htmlize-style.css web-tmp/
git checkout gh-pages
mv web-tmp/* .
rm -rf web-tmp
git commit -a -c master
git checkout -f master