forked from ruricolist/serapeum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (22 loc) · 884 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
asdf='(uiop:quit (if (asdf:test-system :serapeum) 0 1))'
source_files = $(wildcard *.lisp)
CCL = ccl
all: REFERENCE.md
%.html: %.md
pandoc $< -o $@
REFERENCE.md: $(source_files) $(wildcard $(source_files:.lisp=.md))
CL_SOURCE_REGISTRY=`pwd`/ $(CCL) \
--eval '(ql:quickload :serapeum/docs)' \
--eval '(serapeum.docs:update-function-reference "REFERENCE.md" :serapeum (list :serapeum :serapeum.exporting :serapeum.docs :serapeum/contrib/hooks))' \
--eval '(uiop:quit)'
.PHONY: test-sbcl test-ccl test-ecl test
test-sbcl:
sbcl --non-interactive --eval $(asdf) 2>&1 | sed -e 's/^/[SBCL] /'
test-ccl:
ccl --batch --eval $(asdf) << /dev/null 2>&1 | sed -e 's/^/ [CCL] /'
test-ecl:
ecl -eval $(asdf) << /dev/null 2>&1 | sed -e 's/^/ [ECL] /'
test: test-sbcl test-ccl test-ecl
echo "Test suites passed."; beep
.PHONY: docs
docs: REFERENCE.md