8
8
#
9
9
#
10
10
# IDENTIFICATION
11
- # $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.42 2001/10/09 18:45:59 petere Exp $
11
+ # $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.43 2001/11/08 23:46:29 petere Exp $
12
12
#
13
13
# ----------------------------------------------------------------------------
14
14
26
26
ifndef JADE
27
27
JADE = jade
28
28
endif
29
- SGMLINCLUDE = -D $(srcdir ) -D $(srcdir ) /ref -D $( srcdir ) /../graphics
29
+ SGMLINCLUDE = -D $(srcdir ) -D $(srcdir ) /ref
30
30
31
31
ifndef NSGMLS
32
32
NSGMLS = nsgmls
@@ -36,6 +36,9 @@ ifndef SGMLSPL
36
36
SGMLSPL = sgmlspl
37
37
endif
38
38
39
+ CONVERT = convert
40
+ EPSTOPDF = epstopdf
41
+
39
42
40
43
# docbook2man generates man pages from docbook refentry source code.
41
44
@@ -89,9 +92,8 @@ $(addsuffix .html, $(ALLBOOKS)): %.html: %.sgml $(ALLSGML) stylesheet.dsl
89
92
$(JADE.html ) book-decl.sgml $<
90
93
ln -sf index.html $@
91
94
92
- tutorial.html : clientserver.gif
93
95
programmer.html : catalogs.gif connections.gif
94
- postgres.html : clientserver.gif catalogs.gif connections.gif
96
+ postgres.html : catalogs.gif connections.gif
95
97
96
98
97
99
COLLATEINDEX = $(PERL ) $(DOCBOOKSTYLE ) /bin/collateindex.pl -f -g -t 'Index'
@@ -117,17 +119,32 @@ endif
117
119
$(addsuffix .rtf, $(ALLBOOKS ) ) : % .rtf: % .sgml $(ALLSGML ) stylesheet.dsl
118
120
$(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) -c $(CATALOG ) -d stylesheet.dsl -t rtf -V rtf-backend -i output-print book-decl.sgml $<
119
121
120
- # TeX and DVI
121
- $(addsuffix .tex, $(ALLBOOKS ) ) : % .tex: % .sgml $(ALLSGML ) stylesheet.dsl
122
- $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) -c $(CATALOG ) -d stylesheet.dsl -t tex -V tex-backend -i output-print book-decl.sgml $<
122
+ # TeX
123
+ # Regular TeX and pdfTeX have slightly differing requirements, so we
124
+ # need to distinguish the path we're taking.
125
+
126
+ $(addsuffix .tex-ps, $(ALLBOOKS ) ) : % .tex-ps: % .sgml $(ALLSGML ) stylesheet.dsl
127
+ $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) -c $(CATALOG ) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texdvi-output -o $@ book-decl.sgml $<
123
128
# TeX transforms '--' into en-dashes. This hack should go away when
124
129
# OpenJade is fixed (ver. 1.4?)
125
130
$(PERL) -pi -e 's/\-\-/\\mbox{}-\\mbox{}-\\mbox{}/g' $@
126
131
$(PERL) -pi -e 's/\<\</\\mbox{}<\\mbox{}<\\mbox{}/g' $@
127
132
$(PERL) -pi -e 's/\>\>/\\mbox{}>\\mbox{}>\\mbox{}/g' $@
128
133
$(PERL) -pi -e "s/\'\'/\\\\mbox{}'\\\\mbox{}'\\\\mbox{}/g" $@
129
134
130
- % .dvi : % .tex
135
+ programmer.tex-ps : catalogs.eps connections.eps
136
+
137
+ $(addsuffix .tex-pdf, $(ALLBOOKS ) ) : % .tex-pdf: % .sgml $(ALLSGML ) stylesheet.dsl
138
+ $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) -c $(CATALOG ) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texpdf-output -o $@ book-decl.sgml $<
139
+ $(PERL ) -pi -e ' s/\-\-/\\mbox{}-\\mbox{}-\\mbox{}/g' $@
140
+ $(PERL ) -pi -e ' s/\<\</\\mbox{}<\\mbox{}<\\mbox{}/g' $@
141
+ $(PERL ) -pi -e ' s/\>\>/\\mbox{}>\\mbox{}>\\mbox{}/g' $@
142
+ $(PERL ) -pi -e " s/\'\'/\\\\ mbox{}'\\\\ mbox{}'\\\\ mbox{}/g" $@
143
+
144
+ programmer.tex-pdf : catalogs.pdf connections.pdf
145
+
146
+ % .dvi : % .tex-ps
147
+ @rm $* .aux $* .log
131
148
jadetex $<
132
149
jadetex $<
133
150
jadetex $<
@@ -136,17 +153,31 @@ $(addsuffix .tex, $(ALLBOOKS)): %.tex: %.sgml $(ALLSGML) stylesheet.dsl
136
153
% .ps : % .dvi
137
154
dvips -o $@ $<
138
155
139
- % .pdf : % .tex
156
+ % .pdf : % .tex-pdf
157
+ @rm $* .aux $* .log $* .out
140
158
pdfjadetex $<
141
159
pdfjadetex $<
142
160
pdfjadetex $<
143
161
144
162
163
+ # This generates an XML version of the flow-object tree. It's useful
164
+ # for debugging DSSSL code, and possibly to interface to some other
165
+ # tools that can make use of this.
166
+ $(addsuffix .fot, $(ALLBOOKS ) ) : % .fot: % .sgml $(ALLSGML ) stylesheet.dsl
167
+ $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) -c $(CATALOG ) -d stylesheet.dsl -t fot -i output-print -o $@ book-decl.sgml $<
168
+
169
+
145
170
# Graphics
146
171
147
172
% .gif :
148
173
cp $(srcdir ) /../graphics/$@ .
149
174
175
+ % .eps : % .gif
176
+ $(CONVERT ) $< eps:$@
177
+
178
+ % .pdf : % .eps
179
+ $(EPSTOPDF ) $<
180
+
150
181
151
182
# #
152
183
# # Semi-automatic generation of some text files.
@@ -201,6 +232,6 @@ clean distclean maintainer-clean:
201
232
# man
202
233
rm -rf *.1 *.$(DEFAULTSECTION) man1 man$(DEFAULTSECTION) manpage.refs manpage.links manpage.log
203
234
# print
204
- rm -f *.rtf *.tex *.dvi *.aux *.log *.ps *.pdf *.out
235
+ rm -f *.rtf *.tex-ps *.tex-pdf *. dvi *.aux *.log *.ps *.pdf *.out *.eps *.fot
205
236
# index
206
237
rm -f HTML.index bookindex.sgml setindex.sgml
0 commit comments