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 VARSFILE=variables.template
11 HTMLDIR=$(basename $(ROOTFILE))
12 # Place where generated documentation ends up. The value of
13 # DOCSTRINGDIR has to end with a slash or you lose (it's passed to
14 # Lisp's `pathname' function).
15 DOCSTRINGDIR="docstrings/"
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"
41 variables: ${VARSFILE}
42 ./extract-values.sh < ${VARSFILE} >variables.texinfo
44 # html documentation; output in $(HTMLDIR)
48 html-stamp: variables $(DOCFILES) docstrings
50 $(MAKEINFO) -I $(DOCSTRINGDIR) --html $(ROOTFILE)
53 # Postscript documentation
60 $(DVIFILE): variables $(DOCFILES) docstrings
61 texi2dvi -I $(DOCSTRINGDIR) $(ROOTFILE)
67 $(PDFFILE): variables $(DOCFILES) docstrings
68 texi2pdf -I $(DOCSTRINGDIR) $(ROOTFILE)
74 $(INFOFILE): variables $(DOCFILES) docstrings
75 $(MAKEINFO) -I $(DOCSTRINGDIR) $(ROOTFILE)
77 # contrib-modules.texinfo includes contrib-doc-list.texi-temp
78 contrib-modules.texinfo: tempfiles-stamp
80 # Texinfo docstring snippets
82 docstrings: tempfiles-stamp
85 DOCSTRINGDIR=$(DOCSTRINGDIR) PACKAGES=$(PACKAGES) MODULES=$(MODULES) sh make-tempfiles.sh && touch tempfiles-stamp
90 rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl
91 rm -rf $(HTMLDIR) $(DOCSTRINGDIR)
92 rm -f contrib-docs.texi-temp
93 rm -f package-locks.texi-temp
94 rm -f $(PSFILE) $(PDFFILE) $(DVIFILE) html-stamp tempfiles-stamp
95 rm -f $(TMPFILES) contrib-doc-list.texi-temp
96 rm -f sbcl.info sbcl.info-*