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 # The value of DOCSTRINGDIR has to end with a slash or you lose (it's
12 # passed to Lisp's `pathname' function).
13 DOCSTRINGDIR="docstrings/"
36 # html documentation; output in $(HTMLDIR)
40 html-stamp: $(DOCFILES) docstrings
42 $(MAKEINFO) -I $(DOCSTRINGDIR) --html $(ROOTFILE)
45 # Postscript documentation
52 $(DVIFILE): $(DOCFILES) docstrings
53 texi2dvi -I $(DOCSTRINGDIR) $(ROOTFILE)
59 $(PDFFILE): $(DOCFILES) docstrings
60 texi2pdf -I $(DOCSTRINGDIR) $(ROOTFILE)
66 $(INFOFILE): $(DOCFILES) docstrings
67 $(MAKEINFO) -I $(DOCSTRINGDIR) $(ROOTFILE)
69 # Texinfo docstring snippets; output hardcoded in docstrings/ for now.
71 docstrings: docstrings-stamp
74 DOCSTRINGDIR=$(DOCSTRINGDIR) sh docstrings.sh
75 touch docstrings-stamp
81 rm -f *~ *.bak *.orig \#*\# .\#* texput.log
82 rm -rf $(HTMLDIR) $(DOCSTRINGDIR)
83 rm -f $(PSFILE) $(PDFFILE) $(DVIFILE) html-stamp docstrings-stamp
85 rm -f sbcl.info sbcl.info-*