2
2
#
3
3
# PostgreSQL documentation makefile
4
4
#
5
- # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.83 2006/12/10 16:01:06 petere Exp $
5
+ # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.84 2006/12/10 20:46:03 petere Exp $
6
6
#
7
7
# ----------------------------------------------------------------------------
8
8
@@ -124,6 +124,7 @@ features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_package
124
124
# # Print
125
125
# #
126
126
127
+
127
128
# RTF to allow minor editing for hardcopy
128
129
129
130
% .rtf : % .sgml $(ALLSGML ) stylesheet.dsl
@@ -133,19 +134,27 @@ features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_package
133
134
# Regular TeX and pdfTeX have slightly differing requirements, so we
134
135
# need to distinguish the path we're taking.
135
136
136
- % .tex-ps : % .sgml $(ALLSGML ) stylesheet.dsl
137
- $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texdvi-output -o $@ $<
137
+ JADE.tex.call = $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d $(srcdir ) /stylesheet.dsl -t tex -V tex-backend -i output-print
138
+
139
+ % -A4.tex-ps : % .sgml $(ALLSGML ) stylesheet.dsl
140
+ $(JADE.tex.call ) -V texdvi-output -V ' %paper-type%' =A4 -o $@ $<
141
+
142
+ % -US.tex-ps : % .sgml $(ALLSGML ) stylesheet.dsl
143
+ $(JADE.tex.call ) -V texdvi-output -V ' %paper-type%' =USletter -o $@ $<
138
144
139
- % .tex-pdf : % .sgml $(ALLSGML ) stylesheet.dsl
140
- $(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d stylesheet.dsl -t tex -V tex-backend -i output-print -V texpdf-output -o $@ $<
145
+ % -A4.tex-pdf : % .sgml $(ALLSGML ) stylesheet.dsl
146
+ $(JADE.tex.call ) -V texpdf-output -V ' %paper-type%' =A4 -o $@ $<
147
+
148
+ % -US.tex-pdf : % .sgml $(ALLSGML ) stylesheet.dsl
149
+ $(JADE.tex.call ) -V texpdf-output -V ' %paper-type%' =USletter -o $@ $<
141
150
142
151
% .dvi : % .tex-ps
143
152
@rm -f $* .aux $* .log
144
153
jadetex $<
145
154
jadetex $<
146
155
jadetex $<
147
156
148
- # Postscript from TeX
157
+ # PostScript from TeX
149
158
% .ps : % .dvi
150
159
dvips -o $@ $<
151
160
@@ -218,6 +227,7 @@ postgres.xml: postgres.sgml $(GENERATED_SGML)
218
227
sed -e ' s/\[\(amp\|copy\|egrave\|gt\|lt\|mdash\|nbsp\|ouml\|pi\|quot\|uuml\) *\]/\&\1;/g' \
219
228
-e ' 1a\' -e ' <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">' \
220
229
> $@
230
+ # ' hello Emacs
221
231
222
232
override XSLTPROCFLAGS += --stringparam pg.version '$(VERSION ) '
223
233
@@ -227,8 +237,11 @@ xslthtml: stylesheet.xsl postgres.xml
227
237
htmlhelp : stylesheet-hh.xsl postgres.xml
228
238
$(XSLTPROC ) $(XSLTPROCFLAGS ) $^
229
239
230
- % .fo : stylesheet-fo.xsl % .xml
231
- $(XSLTPROC ) $(XSLTPROCFLAGS ) -o $@ $^
240
+ % -A4.fo : stylesheet-fo.xsl % .xml
241
+ $(XSLTPROC ) $(XSLTPROCFLAGS ) --stringparam paper.type A4 -o $@ $^
242
+
243
+ % -US.fo : stylesheet-fo.xsl % .xml
244
+ $(XSLTPROC ) $(XSLTPROCFLAGS ) --stringparam paper.type USletter -o $@ $^
232
245
233
246
234
247
# #
0 commit comments