3 DOCFILES:=*.texinfo $(ASDFTEXI)
4 TMPTYPES:=aux cp cps fn fns ky log pg toc tp tps vr 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"
21 # SBCL_SYSTEM is an optional argument to this make program. If this
22 # variable is set, its contents are used as the command line for
25 # When passing a non-standard SBCL_SYSTEM, be sure to set the
26 # environment variable SBCL_HOME to a useful value, as well.
41 all: asdf.texinfo ps pdf info html
48 ln -s ../../contrib/asdf/asdf.texinfo
50 # html documentation; output in $(HTMLDIRS)
54 html-stamp: $(DOCFILES) docstrings
56 $(MAKEINFO) $(I_FLAGS) --html $(SBCLTEXI)
57 $(MAKEINFO) --html $(ASDFTEXI)
60 # Postscript documentation
68 %.dvi: %.texinfo $(DOCFILES) docstrings
69 texi2dvi $(I_FLAGS) $<
75 %.pdf: %.texinfo $(DOCFILES) docstrings
76 texi2pdf $(I_FLAGS) $<
82 %.info: %.texinfo $(DOCFILES) docstrings
83 $(MAKEINFO) $(I_FLAGS) $<
85 # Texinfo docstring snippets
87 docstrings: tempfiles-stamp
90 DOCSTRINGDIR=$(DOCSTRINGDIR) PACKAGES=$(PACKAGES) MODULES=$(MODULES) sh make-tempfiles.sh "$(SBCL_SYSTEM)" && touch tempfiles-stamp
95 rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl
96 rm -rf $(HTMLDIRS) $(DOCSTRINGDIR)
97 rm -f contrib-docs.texi-temp
98 rm -f package-locks.texi-temp
99 rm -f variables.texinfo
100 rm -f $(PSFILES) $(PDFFILES) html-stamp tempfiles-stamp
101 rm -f $(TMPFILES) $(INDEXFILES)
102 rm -f sbcl.info sbcl.info-* asdf.info