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'
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"
42 variables: ${VARSFILE}
43 ./extract-values.sh < ${VARSFILE} >variables.texinfo
45 # html documentation; output in $(HTMLDIR)
49 html-stamp: variables $(DOCFILES) docstrings
51 $(MAKEINFO) -I $(DOCSTRINGDIR) --html $(ROOTFILE)
54 # Postscript documentation
61 $(DVIFILE): variables $(DOCFILES) docstrings
62 texi2dvi -I $(DOCSTRINGDIR) $(ROOTFILE)
68 $(PDFFILE): variables $(DOCFILES) docstrings
69 texi2pdf -I $(DOCSTRINGDIR) $(ROOTFILE)
75 $(INFOFILE): variables $(DOCFILES) docstrings
76 $(MAKEINFO) -I $(DOCSTRINGDIR) $(ROOTFILE)
78 # contrib-modules.texinfo includes contrib-doc-list.texi-temp
79 contrib-modules.texinfo: tempfiles-stamp
81 # Texinfo docstring snippets
83 docstrings: tempfiles-stamp
86 DOCSTRINGDIR=$(DOCSTRINGDIR) PACKAGES=$(PACKAGES) MODULES=$(MODULES) sh make-tempfiles.sh && touch tempfiles-stamp
91 rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl
92 rm -rf $(HTMLDIR) $(DOCSTRINGDIR)
93 rm -f contrib-docs.texi-temp
94 rm -f package-locks.texi-temp
95 rm -f $(PSFILE) $(PDFFILE) $(DVIFILE) html-stamp tempfiles-stamp
96 rm -f $(TMPFILES) contrib-doc-list.texi-temp
97 rm -f sbcl.info sbcl.info-*