Makefile 1.43 KB
Newer Older
1 2 3 4 5 6 7 8 9
uiop := uiop
ifeq (${user},)
userat :=
else
userat := ${user}@
endif
website:=${userat}common-lisp.net:/project/asdf/public_html/
output = ${uiop}.html ${uiop}.pdf
webfiles = ${output}
10

11
.PHONY: clean html pdf include clean-include clean-crap info doc texinfo website
12

13 14 15 16
website: all
	rsync -lt --no-g ${webfiles} ${website}

all: pdf html info clean-crap
17 18 19 20 21

clean-include:
	rm -rf include

clean-crap:
22
	rm -f *.aux *.cp *.fn *.fns *.ky *.log *.pg *.toc *.tp *.tps *.vr *.vrs
23 24

clean: clean-include
25
	rm -rf  *.pdf *.html *.info ${uiop}.texinfo ${uiop} *.fasl
26

27
fasl: docstrings.lisp
28
	sbcl --no-userinit --eval '(require :asdf)' \
29 30 31 32 33 34
	--eval '(compile-file "docstrings.lisp")' \
	--eval '(quit)'

include: fasl
	sbcl --no-userinit --eval '(require :asdf)' \
	--load docstrings \
35 36 37
	--eval '(sb-texinfo:generate-includes "include/" (list :UIOP/PACKAGE :UIOP/COMMON-LISP :UIOP/UTILITY :UIOP/VERSION :UIOP/OS :UIOP/PATHNAME :UIOP/FILESYSTEM :UIOP/STREAM :UIOP/IMAGE :UIOP/LISP-BUILD :UIOP/LAUNCH-PROGRAM :UIOP/RUN-PROGRAM :UIOP/CONFIGURATION :UIOP/BACKWARD-DRIVER))' \
	--eval '(quit)'

38 39
texinfo : include
	sbcl --no-userinit --eval '(require :asdf)' \
40
	--load docstrings \
41 42 43 44 45
	--eval "(sb-texinfo:complete-texinfo-template \"template.texinfo\" \"${uiop}.texinfo\" \"include/\")" \
	--eval '(quit)'

pdf: texinfo
	texi2pdf ${uiop}.texinfo
46

47 48
html: texinfo
	makeinfo --html --no-split ${uiop}.texinfo
49

50 51 52
htmls: texinfo
	makeinfo --html ${uiop}.texinfo

53 54
info: texinfo
	makeinfo ${uiop}.texinfo