22#
33# PostgreSQL documentation makefile
44#
5- # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.85 2006/12/1501:20:59 momjian Exp $
5+ # $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.86 2006/12/1516:50:07 momjian Exp $
66#
77# ----------------------------------------------------------------------------
88
9999
100100COLLATEINDEX := LC_ALL=C$(PERL ) $(COLLATEINDEX ) -f -g
101101
102+ # If HTML.index does not exist, create a dummy bookindex.sgml. During the
103+ # next build, create bookindex.sgml with the proper index contents. A proper
104+ # bookindex.sgml is required to have an index in the output.
102105ifeq (,$(wildcard HTML.index) )
103106bookindex.sgml :
104107$(COLLATEINDEX ) -o$@ -N
@@ -136,29 +139,21 @@ features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_package
136139
137140JADE.tex.call =$(JADE ) $(JADEFLAGS ) $(SGMLINCLUDE ) $(CATALOG ) -d$(srcdir ) /stylesheet.dsl -t tex -V tex-backend -i output-print
138141
139- % -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$@ $<
142+ % -A4.tex-ps :% .sgml$(ALLSGML ) stylesheet.dsl bookindex.sgml
142143$(JADE.tex.call ) -V texdvi-output -V' %paper-type%' =A4 -o$@ $<
143144
144- % -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$@ $<
145+ % -US.tex-ps :% .sgml$(ALLSGML ) stylesheet.dsl bookindex.sgml
147146$(JADE.tex.call ) -V texdvi-output -V' %paper-type%' =USletter -o$@ $<
148147
149- % -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$@ $<
148+ % -A4.tex-pdf :% .sgml$(ALLSGML ) stylesheet.dsl bookindex.sgml
152149$(JADE.tex.call ) -V texpdf-output -V' %paper-type%' =A4 -o$@ $<
153150
154- % -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$@ $<
151+ % -US.tex-pdf :% .sgml$(ALLSGML ) stylesheet.dsl bookindex.sgml
157152$(JADE.tex.call ) -V texpdf-output -V' %paper-type%' =USletter -o$@ $<
158153
159154% .dvi :% .tex-ps
160155@rm -f$* .aux$* .log
161- # multiple runs are necessary to create properindex entries
156+ # multiple runs are necessary to create properintra-document links
162157jadetex$<
163158jadetex$<
164159jadetex$<
@@ -169,7 +164,7 @@ JADE.tex.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d $(srcdir)/styl
169164
170165% .pdf :% .tex-pdf
171166@rm -f$* .aux$* .log$* .out
172- # multiple runs are necessary to create properindex entries
167+ # multiple runs are necessary to create properintra-document links
173168pdfjadetex$<
174169pdfjadetex$<
175170pdfjadetex$<