Index: doc/src/sgml/Makefile
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/Makefile,v
retrieving revision 1.84
diff -c -c -r1.84 Makefile
*** doc/src/sgml/Makefile	10 Dec 2006 20:46:03 -0000	1.84
--- doc/src/sgml/Makefile	15 Dec 2006 00:18:52 -0000
***************
*** 137,155 ****
--- 137,164 ----
  JADE.tex.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d $(srcdir)/stylesheet.dsl -t tex -V tex-backend -i output-print
  
  %-A4.tex-ps: %.sgml $(ALLSGML) stylesheet.dsl
+ 	# multiple runs are necessary to create proper index entries
+ 	$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=A4 -o $@ $<
  	$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=A4 -o $@ $<
  
  %-US.tex-ps: %.sgml $(ALLSGML) stylesheet.dsl
+ 	# multiple runs are necessary to create proper index entries
+ 	$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=USletter -o $@ $<
  	$(JADE.tex.call) -V texdvi-output -V '%paper-type%'=USletter -o $@ $<
  
  %-A4.tex-pdf: %.sgml $(ALLSGML) stylesheet.dsl
+ 	# multiple runs are necessary to create proper index entries
+ 	$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=A4 -o $@ $<
  	$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=A4 -o $@ $<
  
  %-US.tex-pdf: %.sgml $(ALLSGML) stylesheet.dsl
+ 	# multiple runs are necessary to create proper index entries
+ 	$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=USletter -o $@ $<
  	$(JADE.tex.call) -V texpdf-output -V '%paper-type%'=USletter -o $@ $<
  
  %.dvi: %.tex-ps
  	@rm -f $*.aux $*.log
+ 	# multiple runs are necessary to create proper index entries
  	jadetex $<
  	jadetex $<
  	jadetex $<
***************
*** 160,165 ****
--- 169,175 ----
  
  %.pdf: %.tex-pdf
  	@rm -f $*.aux $*.log $*.out
+ 	# multiple runs are necessary to create proper index entries
  	pdfjadetex $<
  	pdfjadetex $<
  	pdfjadetex $<
