X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=doc%2Fmanual%2FMakefile;h=5251918a566bc54324c7e3af0d7d033af1974f7f;hb=d1441ffce0db0043ccbcb27fa5ab590e44a85994;hp=6e1e2015fb43408bdc705145ff24a6cca7f70f5f;hpb=b93f08e862504964f907b745e80cba816e77ac03;p=sbcl.git diff --git a/doc/manual/Makefile b/doc/manual/Makefile index 6e1e201..5251918 100644 --- a/doc/manual/Makefile +++ b/doc/manual/Makefile @@ -7,6 +7,7 @@ PSFILE=sbcl.ps PDFFILE=sbcl.pdf DVIFILE=sbcl.dvi INFOFILE=sbcl.info +VARSFILE=variables.template HTMLDIR=$(basename $(ROOTFILE)) # Place where generated documentation ends up. The value of # DOCSTRINGDIR has to end with a slash or you lose (it's passed to @@ -14,10 +15,9 @@ HTMLDIR=$(basename $(ROOTFILE)) DOCSTRINGDIR="docstrings/" # List of contrib modules that docstring docs will be created for. # FIXME: should check test-passed and not load them. -MODULES=':sb-md5 :sb-rotate-byte' +MODULES=':sb-md5 :sb-rotate-byte :sb-grovel :sb-sprof :sb-bsd-sockets' # List of package names that docstring docs will be created for. -PACKAGES=":COMMON-LISP :SB-ALIEN :SB-DEBUG :SB-EXT :SB-GRAY :SB-MOP :SB-PROFILE :SB-THREAD :SB-MD5 :SB-ROTATE-BYTE" - +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" ifeq ($(MAKEINFO),) MAKEINFO:=makeinfo @@ -38,12 +38,14 @@ all: ps pdf info html dist: html pdf +variables: ${VARSFILE} + ./extract-values.sh < ${VARSFILE} >variables.texinfo # html documentation; output in $(HTMLDIR) .PHONY: html html: html-stamp -html-stamp: $(DOCFILES) docstrings +html-stamp: variables $(DOCFILES) docstrings @rm -rf $(HTMLDIR) $(MAKEINFO) -I $(DOCSTRINGDIR) --html $(ROOTFILE) touch html-stamp @@ -55,21 +57,21 @@ ps: $(PSFILE) $(PSFILE): $(DVIFILE) dvips -o $@ $< -$(DVIFILE): $(DOCFILES) docstrings +$(DVIFILE): variables $(DOCFILES) docstrings texi2dvi -I $(DOCSTRINGDIR) $(ROOTFILE) # PDF documentation .PHONY: pdf pdf: $(PDFFILE) -$(PDFFILE): $(DOCFILES) docstrings +$(PDFFILE): variables $(DOCFILES) docstrings texi2pdf -I $(DOCSTRINGDIR) $(ROOTFILE) # info docfiles .PHONY: info info: $(INFOFILE) -$(INFOFILE): $(DOCFILES) docstrings +$(INFOFILE): variables $(DOCFILES) docstrings $(MAKEINFO) -I $(DOCSTRINGDIR) $(ROOTFILE) # contrib-modules.texinfo includes contrib-doc-list.texi-temp @@ -80,8 +82,7 @@ contrib-modules.texinfo: tempfiles-stamp docstrings: tempfiles-stamp tempfiles-stamp: - DOCSTRINGDIR=$(DOCSTRINGDIR) PACKAGES=$(PACKAGES) MODULES=$(MODULES) sh make-tempfiles.sh - touch tempfiles-stamp + DOCSTRINGDIR=$(DOCSTRINGDIR) PACKAGES=$(PACKAGES) MODULES=$(MODULES) sh make-tempfiles.sh && touch tempfiles-stamp .PHONY: clean @@ -89,6 +90,7 @@ clean: rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl rm -rf $(HTMLDIR) $(DOCSTRINGDIR) rm -f contrib-docs.texi-temp + rm -f package-locks.texi-temp rm -f $(PSFILE) $(PDFFILE) $(DVIFILE) html-stamp tempfiles-stamp rm -f $(TMPFILES) contrib-doc-list.texi-temp rm -f sbcl.info sbcl.info-*