22#
33# PostgreSQL documentation makefile
44#
5- # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.83 2006/12/1016:01:06 petere Exp $
5+ # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.84 2006/12/1020:46:03 petere Exp $
66#
77# ----------------------------------------------------------------------------
88
@@ -124,6 +124,7 @@ features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_package
124124# # Print
125125# #
126126
127+
127128# RTF to allow minor editing for hardcopy
128129
129130% .rtf :% .sgml$(ALLSGML ) stylesheet.dsl
@@ -133,19 +134,27 @@ features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_package
133134# Regular TeX and pdfTeX have slightly differing requirements, so we
134135# need to distinguish the path we're taking.
135136
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$@ $<
138144
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$@ $<
141150
142151% .dvi :% .tex-ps
143152@rm -f$* .aux$* .log
144153jadetex$<
145154jadetex$<
146155jadetex$<
147156
148- # Postscript from TeX
157+ # PostScript from TeX
149158% .ps :% .dvi
150159dvips -o$@ $<
151160
@@ -218,6 +227,7 @@ postgres.xml: postgres.sgml $(GENERATED_SGML)
218227 sed -e' s/\[\(amp\|copy\|egrave\|gt\|lt\|mdash\|nbsp\|ouml\|pi\|quot\|uuml\) *\]/\&\1;/g' \
219228 -e' 1a\' -e' <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">' \
220229> $@
230+ # ' hello Emacs
221231
222232override XSLTPROCFLAGS += --stringparam pg.version '$(VERSION ) '
223233
@@ -227,8 +237,11 @@ xslthtml: stylesheet.xsl postgres.xml
227237htmlhelp : stylesheet-hh.xsl postgres.xml
228238$(XSLTPROC ) $(XSLTPROCFLAGS ) $^
229239
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$@ $^
232245
233246
234247# #