-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
32 lines (23 loc) · 1.22 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
.PHONY: vendor docs pubdocs swig
sourcefiles = $(shell ffind --full-path --literal .lisp)
docfiles = $(shell ls docs/*.markdown)
apidocs = $(shell ls docs/*reference*.markdown)
# Vendor ----------------------------------------------------------------------
vendor/quickutils.lisp: vendor/make-quickutils.lisp
cd vendor && sbcl --noinform --load make-quickutils.lisp --eval '(quit)'
vendor: vendor/quickutils.lisp
# SWIG ------------------------------------------------------------------------
src/low-level/bearlibterminal.lisp: src/low-level/bearlibterminal.swig src/low-level/include/BearLibTerminal.h package.lisp
swig -cffi -module bearlibterminal src/low-level/bearlibterminal.swig
swig: src/low-level/bearlibterminal.lisp
# Documentation ---------------------------------------------------------------
$(apidocs): $(sourcefiles)
sbcl --noinform --load docs/api.lisp --eval '(quit)'
docs/build/index.html: $(docfiles) $(apidocs) docs/title
cd docs && ~/.virtualenvs/d/bin/d
docs: docs/build/index.html
pubdocs: docs
hg -R ~/src/docs.stevelosh.com pull -u
rsync --delete -a ./docs/build/ ~/src/docs.stevelosh.com/cl-blt
hg -R ~/src/docs.stevelosh.com commit -Am 'cl-blt: Update site.'
hg -R ~/src/docs.stevelosh.com push