2 DOCFILES:=$(shell echo *.texinfo)
4 TMPFILES:=sbcl.aux sbcl.cp sbcl.fn sbcl.ky sbcl.log sbcl.pg sbcl.toc sbcl.tp sbcl.vr
10 HTMLDIR=$(basename $(ROOTFILE))
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 # List of package names that documentation will be created for.
16 PACKAGES=":COMMON-LISP :SB-ALIEN :SB-DEBUG :SB-EXT :SB-GRAY :SB-MOP :SB-PROFILE :SB-THREAD"
39 # html documentation; output in $(HTMLDIR)
43 html-stamp: $(DOCFILES) docstrings
45 $(MAKEINFO) -I $(DOCSTRINGDIR) --html $(ROOTFILE)
48 # Postscript documentation
55 $(DVIFILE): $(DOCFILES) docstrings
56 texi2dvi -I $(DOCSTRINGDIR) $(ROOTFILE)
62 $(PDFFILE): $(DOCFILES) docstrings
63 texi2pdf -I $(DOCSTRINGDIR) $(ROOTFILE)
69 $(INFOFILE): $(DOCFILES) docstrings
70 $(MAKEINFO) -I $(DOCSTRINGDIR) $(ROOTFILE)
72 # contrib-modules.texinfo includes contrib-doc-list.texi-temp
73 contrib-modules.texinfo: tempfiles-stamp
75 # Texinfo docstring snippets
77 docstrings: tempfiles-stamp
80 DOCSTRINGDIR=$(DOCSTRINGDIR) sh make-tempfiles.sh
86 rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl
87 rm -rf $(HTMLDIR) $(DOCSTRINGDIR)
88 rm -f contrib-docs.texi-temp
89 rm -f $(PSFILE) $(PDFFILE) $(DVIFILE) html-stamp tempfiles-stamp
90 rm -f $(TMPFILES) contrib-doc-list.texi-temp
91 rm -f sbcl.info sbcl.info-*