3 DOCFILES:=*.texinfo $(ASDFTEXI)
4 TMPTYPES:=aux cps fns ky log pg toc tps vrs
5 TMPFILES:=$(foreach target,asdf sbcl,$(foreach type,$(TMPTYPES),$(target).$(type)))
6 PSFILES=sbcl.ps asdf.ps
7 PDFFILES=sbcl.pdf asdf.pdf
8 INFOFILES=sbcl.info asdf.info
9 VARSFILE=variables.template
10 HTMLDIRS=$(basename $(SBCLTEXI)) $(basename $(ASDFTEXI))
11 # Place where generated documentation ends up. The value of
12 # DOCSTRINGDIR has to end with a slash or you lose (it's passed to
13 # Lisp's `pathname' function).
14 DOCSTRINGDIR="docstrings/"
15 I_FLAGS=-I $(DOCSTRINGDIR) -I ../../contrib/
16 # List of contrib modules that docstring docs will be created for.
17 # FIXME: should check test-passed and not load them.
18 MODULES=':sb-md5 :sb-rotate-byte :sb-grovel :sb-sprof :sb-bsd-sockets'
19 # List of package names that docstring docs will be created for.
20 PACKAGES=":COMMON-LISP :SB-ALIEN :SB-DEBUG :SB-EXT :SB-GRAY :SB-MOP :SB-PROFILE :SB-THREAD :SB-MD5 :SB-ROTATE-BYTE :SB-SPROF :SB-BSD-SOCKETS"
35 all: asdf.texinfo ps pdf info html
42 ln -s ../../contrib/asdf/asdf.texinfo
44 variables: ${VARSFILE}
45 ./extract-values.sh < ${VARSFILE} >variables.texinfo
47 # html documentation; output in $(HTMLDIRS)
51 html-stamp: variables $(DOCFILES) docstrings
53 $(MAKEINFO) $(I_FLAGS) --html $(SBCLTEXI)
54 $(MAKEINFO) --html $(ASDFTEXI)
57 # Postscript documentation
65 %.dvi: %.texinfo variables $(DOCFILES) docstrings
66 texi2dvi $(I_FLAGS) $<
72 %.pdf: %.texinfo variables $(DOCFILES) docstrings
73 texi2pdf $(I_FLAGS) $<
79 %.info: %.texinfo variables $(DOCFILES) docstrings
80 $(MAKEINFO) $(I_FLAGS) $<
82 # Texinfo docstring snippets
84 docstrings: tempfiles-stamp
87 DOCSTRINGDIR=$(DOCSTRINGDIR) PACKAGES=$(PACKAGES) MODULES=$(MODULES) sh make-tempfiles.sh && touch tempfiles-stamp
92 rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl
93 rm -rf $(HTMLDIRS) $(DOCSTRINGDIR)
94 rm -f contrib-docs.texi-temp
95 rm -f package-locks.texi-temp
96 rm -f $(PSFILE) $(PDFFILE) $(DVIFILE) html-stamp tempfiles-stamp
98 rm -f sbcl.info sbcl.info-*