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
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
$(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
--- /dev/null
+#!/bin/sh
+
+# extracts values from the system for inclusion in the texinfo source.
+
+VERSION=`eval echo $(grep '^"' ../../version.lisp-expr)`
+MONTH=`date "+%Y-%m"`
+
+sed -e "s/@VERSION@/$VERSION/" \
+ -e "s/@MONTH@/$MONTH/"
@c %**end of header
+@include variables.texinfo
@set EDITION 0.1
-@set VERSION 0.8.9
-@set UPDATED 2 April 2004
-@set UPDATE-MONTH April 2004
+@settitle SBCL @value{VERSION} User Manual
@c for install-info
@dircategory Software development
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.8.12.4"
+"0.8.12.5"