22#
33# PostgreSQL documentation makefile
44#
5- # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.84 2006/12/10 20:46:03 petere Exp $
5+ # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.85 2006/12/15 01: 20:59 momjian Exp $
66#
77# ----------------------------------------------------------------------------
88
@@ -137,19 +137,28 @@ features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_package
137137JADE.tex.call =$(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d$(srcdir ) /stylesheet.dsl -t tex -V tex-backend -i output-print
138138
139139% -A4.tex-ps :% .sgml$(ALLSGML ) stylesheet.dsl
140+ # multiple runs are necessary to create proper index entries
141+ $(JADE.tex.call ) -V texdvi-output -V' %paper-type%' =A4 -o$@ $<
140142$(JADE.tex.call ) -V texdvi-output -V' %paper-type%' =A4 -o$@ $<
141143
142144% -US.tex-ps :% .sgml$(ALLSGML ) stylesheet.dsl
145+ # multiple runs are necessary to create proper index entries
146+ $(JADE.tex.call ) -V texdvi-output -V' %paper-type%' =USletter -o$@ $<
143147$(JADE.tex.call ) -V texdvi-output -V' %paper-type%' =USletter -o$@ $<
144148
145149% -A4.tex-pdf :% .sgml$(ALLSGML ) stylesheet.dsl
150+ # multiple runs are necessary to create proper index entries
151+ $(JADE.tex.call ) -V texpdf-output -V' %paper-type%' =A4 -o$@ $<
146152$(JADE.tex.call ) -V texpdf-output -V' %paper-type%' =A4 -o$@ $<
147153
148154% -US.tex-pdf :% .sgml$(ALLSGML ) stylesheet.dsl
155+ # multiple runs are necessary to create proper index entries
156+ $(JADE.tex.call ) -V texpdf-output -V' %paper-type%' =USletter -o$@ $<
149157$(JADE.tex.call ) -V texpdf-output -V' %paper-type%' =USletter -o$@ $<
150158
151159% .dvi :% .tex-ps
152160@rm -f$* .aux$* .log
161+ # multiple runs are necessary to create proper index entries
153162jadetex$<
154163jadetex$<
155164jadetex$<
@@ -160,6 +169,7 @@ JADE.tex.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d $(srcdir)/styl
160169
161170% .pdf :% .tex-pdf
162171@rm -f$* .aux$* .log$* .out
172+ # multiple runs are necessary to create proper index entries
163173pdfjadetex$<
164174pdfjadetex$<
165175pdfjadetex$<