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 # Texinfo docstring snippets; output hardcoded in docstrings/ for now.
74 docstrings: docstrings-stamp
77 DOCSTRINGDIR=$(DOCSTRINGDIR) sh docstrings.sh
78 touch docstrings-stamp
84 rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl
85 rm -rf $(HTMLDIR) $(DOCSTRINGDIR)
86 rm -f $(PSFILE) $(PDFFILE) $(DVIFILE) html-stamp docstrings-stamp
88 rm -f sbcl.info sbcl.info-*