3 DOCFILES:=*.texinfo $(ASDFTEXI)
4 TMPTYPES:=aux cps fns ky log pg toc tps vrs
5 TMPFILES:=$(foreach target,asdf sbcl,$(foreach type,$(TMPTYPES),$(target).$(type)))
6 PSFILES=sbcl.ps asdf.ps
7 PDFFILES=sbcl.pdf asdf.pdf
8 INFOFILES=sbcl.info asdf.info
9 HTMLDIRS=$(basename $(SBCLTEXI)) $(basename $(ASDFTEXI))
10 # Place where generated documentation ends up. The value of
11 # DOCSTRINGDIR has to end with a slash or you lose (it's passed to
12 # Lisp's `pathname' function).
13 DOCSTRINGDIR="docstrings/"
14 I_FLAGS=-I $(DOCSTRINGDIR) -I ../../contrib/
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 :sb-sprof :sb-bsd-sockets'
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 :SB-SPROF :SB-BSD-SOCKETS"
34 all: asdf.texinfo ps pdf info html
41 ln -s ../../contrib/asdf/asdf.texinfo
43 # html documentation; output in $(HTMLDIRS)
47 html-stamp: $(DOCFILES) docstrings
49 $(MAKEINFO) $(I_FLAGS) --html $(SBCLTEXI)
50 $(MAKEINFO) --html $(ASDFTEXI)
53 # Postscript documentation
61 %.dvi: %.texinfo $(DOCFILES) docstrings
62 texi2dvi $(I_FLAGS) $<
68 %.pdf: %.texinfo $(DOCFILES) docstrings
69 texi2pdf $(I_FLAGS) $<
75 %.info: %.texinfo $(DOCFILES) docstrings
76 $(MAKEINFO) $(I_FLAGS) $<
78 # Texinfo docstring snippets
80 docstrings: tempfiles-stamp
83 DOCSTRINGDIR=$(DOCSTRINGDIR) PACKAGES=$(PACKAGES) MODULES=$(MODULES) sh make-tempfiles.sh && touch tempfiles-stamp
88 rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl
89 rm -rf $(HTMLDIRS) $(DOCSTRINGDIR)
90 rm -f contrib-docs.texi-temp
91 rm -f package-locks.texi-temp
92 rm -f $(PSFILE) $(PDFFILE) $(DVIFILE) html-stamp tempfiles-stamp
94 rm -f sbcl.info sbcl.info-*