1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
########################################################################
# Makefile for producing HTML and LaTeX (and thence, DVI and
# Postscript) versions of the SGML documentation.
#
# version 1.03
#
# *** NOTE ***
#
# This will _not_ work unless you have the Docbook 2.2.1 DTD properly
# installed on your system, and sgmls or nsgmls can find it using the
# public identifier "-//HaL and O'Reilly//DTD DocBook//EN". You will
# also need the character-entity files with the public identifiers
#
# "ISO 8879:1986//ENTITIES Publishing//EN"
# and
# "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN"
#
# installed. Copies of the source files for these are included in
# the Extras/ subdirectory.
########################################################################
#
# Beginning of user configuration options.
#
# Which program do you use: sgmls or nsgmls?
SGMLS = nsgmls
# What is the command for running LaTeX on a file?
LATEX = latex
# Do you want to supply a full path for sgmlspl?
SGMLSPL = sgmlspl
# If you want Postscript, what is the command for converting DVI to Postscript?
DVIPS = dvips
# What SGML declaration do you use with the Docbook 2.2.1 DTD?
SGMLDECL = /usr/local/lib/sgml/sgmldecl/docbook.dcl
#
# End of user configuration options.
#
SHELL = /bin/sh
LATEXSPEC = tolatex.pl
HTMLSPEC = tohtml.pl
all: latex html
latex: LaTeX/sgmlspm.tex LaTeX/sgmlspl.tex
dvi: LaTeX/sgmlspm.dvi LaTeX/sgmlspl.dvi
ps: PS/sgmlspm.ps PS/sgmlspl.ps
html: HTML/SGMLSpm/sgmlspm.html HTML/sgmlspl/sgmlspl.html
LaTeX/sgmlspm.tex: sgmlspm.sgml ${LATEXSPEC}
@echo Converting sgmlspm.sgml to LaTeX...; \
cd LaTeX; ln -sf ../sample.pl .; \
if [ \! -r sgmlspm.refs -o -r .redo_sgmlspm ]; then \
echo \(Preliminary LaTeX pass for sgmlspm.sgml...\); \
${SGMLS} ${SGMLDECL} ../sgmlspm.sgml \
| $(SGMLSPL) ../${LATEXSPEC} sgmlspm > sgmlspm.tex; \
fi; \
echo \(Main LaTeX pass for sgmlspm.sgml...\); \
${SGMLS} ${SGMLDECL} ../sgmlspm.sgml \
| $(SGMLSPL) ../${LATEXSPEC} sgmlspm >sgmlspm.tex
LaTeX/sgmlspm.dvi: LaTeX/sgmlspm.tex
@echo Converting sgmlspm.tex to DVI...; \
cd LaTeX; ${LATEX} sgmlspm.tex; ${LATEX} sgmlspm.tex
PS/sgmlspm.ps: LaTeX/sgmlspm.dvi
@echo Converting sgmlspm.dvi to Postscript...; \
${DVIPS} -o PS/sgmlspm.ps LaTeX/sgmlspm.dvi
HTML/SGMLSpm/sgmlspm.html: sgmlspm.sgml ${HTMLSPEC}
@cd HTML/SGMLSpm; ln -sf ../../sample.pl .; \
echo Converting sgmlspm.sgml to HTML...; \
if [ \! -r sgmlspm.refs -o -r .redo_sgmlspm ]; then \
echo \(Preliminary HTML pass for sgmlspm.sgml...\); \
${SGMLS} ${SGMLDECL} ../../sgmlspm.sgml \
| $(SGMLSPL) ../../${HTMLSPEC} sgmlspm; \
fi; \
echo \(Main HTML pass for sgmlspm.sgml...\); \
${SGMLS} ${SGMLDECL} ../../sgmlspm.sgml \
| $(SGMLSPL) ../../${HTMLSPEC} sgmlspm;
LaTeX/sgmlspl.tex: sgmlspl.sgml ${LATEXSPEC}
@echo Converting sgmlspl.sgml to LaTeX...; \
cd LaTeX; \
if [ \! -r sgmlspl.refs -o -r .redo_sgmlspl ]; then \
echo \(Preliminary LaTeX pass for sgmlspl.sgml...\); \
${SGMLS} ${SGMLDECL} ../sgmlspl.sgml \
| $(SGMLSPL) ../${LATEXSPEC} sgmlspl > sgmlspl.tex; \
fi; \
echo \(Main LaTeX pass for sgmlspl.sgml...\); \
${SGMLS} ${SGMLDECL} ../sgmlspl.sgml \
| $(SGMLSPL) ../${LATEXSPEC} sgmlspl > sgmlspl.tex
LaTeX/sgmlspl.dvi: LaTeX/sgmlspl.tex
@echo Converting sgmlspl.tex to DVI...; \
cd LaTeX; \
${LATEX} sgmlspl.tex; ${LATEX} sgmlspl.tex
PS/sgmlspl.ps: LaTeX/sgmlspl.dvi
@echo Converting sgmlspl.dvi to Postscript...; \
${DVIPS} -o PS/sgmlspl.ps LaTeX/sgmlspl.dvi
HTML/sgmlspl/sgmlspl.html: sgmlspl.sgml ${HTMLSPEC}
@cd HTML/sgmlspl; \
echo Converting sgmlspl.sgml to HTML...; \
if [ ! -r sgmlspl.refs -o -r .redo_sgmlspl ]; then \
echo \(Preliminary HTML pass for sgmlspl.sgml...\); \
${SGMLS} ${SGMLDECL} ../../sgmlspl.sgml \
| $(SGMLSPL) ../../${HTMLSPEC} sgmlspl; \
fi; \
echo \(Main HTML pass for sgmlspl.sgml...\); \
${SGMLS} ${SGMLDECL} ../../sgmlspl.sgml \
| $(SGMLSPL) ../../${HTMLSPEC} sgmlspl;
clean:
rm -f *~ core LaTeX/* HTML/SGMLSpm/* HTML/sgmlspl/* PS/*
|