X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=doc%2Fmanual%2FMakefile;h=0bce9a5a81da8e16fdb4465319f60521b50e9769;hb=d84e1dbbbf11e76663cfaa0b1a5b7591f39f01b6;hp=760f4b5c96dae8aaa5b119090f01fb7688a62a54;hpb=28c2529caecc45984cbbef0e3277cde740bbf326;p=sbcl.git diff --git a/doc/manual/Makefile b/doc/manual/Makefile index 760f4b5..0bce9a5 100644 --- a/doc/manual/Makefile +++ b/doc/manual/Makefile @@ -7,6 +7,7 @@ PSFILES=sbcl.ps asdf.ps PDFFILES=sbcl.pdf asdf.pdf INFOFILES=sbcl.info asdf.info HTMLDIRS=$(basename $(SBCLTEXI)) $(basename $(ASDFTEXI)) +HTMLFILES=sbcl.html asdf.html # Place where generated documentation ends up. The value of # DOCSTRINGDIR has to end with a slash or you lose (it's passed to # Lisp's `pathname' function). @@ -14,9 +15,13 @@ DOCSTRINGDIR="docstrings/" CONTRIBDIR="../../contrib/" I_FLAGS=-I $(DOCSTRINGDIR) -I $(CONTRIBDIR) # List of contrib modules that docstring docs will be created for. -MODULES=':sb-md5 :sb-rotate-byte :sb-grovel :sb-sprof :sb-bsd-sockets' +MODULES=':sb-md5 :sb-queue :sb-concurrency :sb-rotate-byte :sb-grovel \ + :sb-sprof :sb-bsd-sockets :sb-cover :sb-posix' # 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 :SB-SPROF :SB-BSD-SOCKETS" +PACKAGES=":COMMON-LISP :SB-ALIEN :SB-DEBUG :SB-EXT :SB-GRAY :SB-MOP \ + :SB-PCL :SB-SYS \ + :SB-PROFILE :SB-THREAD :SB-MD5 :SB-QUEUE :SB-ROTATE-BYTE \ + :SB-SPROF :SB-BSD-SOCKETS :SB-COVER :SB-POSIX :SB-CONCURRENCY" # SBCL_SYSTEM is an optional argument to this make program. If this # variable is set, its contents are used as the command line for @@ -30,7 +35,7 @@ ifeq ($(MAKEINFO),) endif ifeq ($(TEXI2PDF),) - TEXI2PDF:=texi2pdf + TEXI2PDF:=texi2dvi -p endif ifeq ($(DVIPS),) @@ -53,8 +58,11 @@ html: html-stamp html-stamp: $(DOCFILES) docstrings @rm -rf $(HTMLDIRS) - $(MAKEINFO) $(I_FLAGS) --html $(SBCLTEXI) - $(MAKEINFO) --html $(ASDFTEXI) + @rm -f $(HTMLFILES) + $(MAKEINFO) $(I_FLAGS) --html --css-include=style-multi.css $(SBCLTEXI) + $(MAKEINFO) --html --css-include=style-multi.css $(ASDFTEXI) + $(MAKEINFO) $(I_FLAGS) --html --no-split --css-include=style-single.css $(SBCLTEXI) + $(MAKEINFO) --html --no-split --css-include=style-single.css $(ASDFTEXI) touch html-stamp # Postscript documentation @@ -73,7 +81,7 @@ ps: $(PSFILES) pdf: $(PDFFILES) %.pdf: %.texinfo $(DOCFILES) docstrings - texi2pdf $(I_FLAGS) $< + $(TEXI2PDF) $(I_FLAGS) $< # info docfiles .PHONY: info @@ -88,8 +96,15 @@ info: $(INFOFILES) # are in $(CONTRIBDIR). CONTRIB_FASLS=$(shell find $(shell echo $(MODULES) | sed "s|:|$(CONTRIBDIR)|g") -name '*.fasl') docstrings: $(CONTRIB_FASLS) tempfiles-stamp - for module in $(shell echo $(MODULES)); do test -e $(CONTRIBDIR)/$${module#:}/test-passed || { echo "The documented contrib $$module seems to have failed its tests." && exit 1; }; done - DOCSTRINGDIR=$(DOCSTRINGDIR) PACKAGES=$(PACKAGES) MODULES=$(MODULES) sh make-tempfiles.sh "$(SBCL_SYSTEM)" && touch $(DOCSTRINGDIR) + for module in $(shell echo $(MODULES)); do \ + test -e $(CONTRIBDIR)/$${module#:}/test-passed \ + || { echo "The documented contrib $$module seems \ + to have failed its tests." && exit 1; } \ + done + DOCSTRINGDIR=$(DOCSTRINGDIR) \ + PACKAGES=$(PACKAGES) \ + MODULES=$(MODULES) \ + sh make-tempfiles.sh "$(SBCL_SYSTEM)" && touch $(DOCSTRINGDIR) tempfiles-stamp: touch tempfiles-stamp @@ -98,6 +113,7 @@ tempfiles-stamp: clean: rm -f *~ *.bak *.orig \#*\# .\#* texput.log *.fasl rm -rf $(HTMLDIRS) $(DOCSTRINGDIR) + rm -f $(HTMLFILES) rm -f contrib-docs.texi-temp rm -f package-locks.texi-temp rm -f variables.texinfo