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 contrib modules that docstring docs will be created for.
16 # FIXME: should check test-passed and not load them.
17 MODULES=':sb-md5 :sb-rotate-byte :sb-grovel'
18 # List of package names that docstring docs will be created for.
19 PACKAGES=":COMMON-LISP :SB-ALIEN :SB-DEBUG :SB-EXT :SB-GRAY :SB-MOP :SB-PROFILE :SB-THREAD :SB-MD5 :SB-ROTATE-BYTE"
42 # html documentation; output in $(HTMLDIR)
46 html-stamp: $(DOCFILES) docstrings
48 $(MAKEINFO) -I $(DOCSTRINGDIR) --html $(ROOTFILE)
51 # Postscript documentation
58 $(DVIFILE): $(DOCFILES) docstrings
59 texi2dvi -I $(DOCSTRINGDIR) $(ROOTFILE)
65 $(PDFFILE): $(DOCFILES) docstrings
66 texi2pdf -I $(DOCSTRINGDIR) $(ROOTFILE)
72 $(INFOFILE): $(DOCFILES) docstrings
73 $(MAKEINFO) -I $(DOCSTRINGDIR) $(ROOTFILE)
75 # contrib-modules.texinfo includes contrib-doc-list.texi-temp
76 contrib-modules.texinfo: tempfiles-stamp
78 # Texinfo docstring snippets
80 docstrings: tempfiles-stamp
83 DOCSTRINGDIR=$(DOCSTRINGDIR) PACKAGES=$(PACKAGES) MODULES=$(MODULES) sh make-tempfiles.sh
89 rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl
90 rm -rf $(HTMLDIR) $(DOCSTRINGDIR)
91 rm -f contrib-docs.texi-temp
92 rm -f $(PSFILE) $(PDFFILE) $(DVIFILE) html-stamp tempfiles-stamp
93 rm -f $(TMPFILES) contrib-doc-list.texi-temp
94 rm -f sbcl.info sbcl.info-*